mattermost-mobile-upstream/detox/e2e/support/classification_lock.ts
yasser khan 08f83d4e7f
Add E2E coverage for custom terms of service login flow (#10105)
* Add E2E coverage for custom terms of service login flow

- Add detox test covering accept (MM-T1194) and decline (MM-T1193) paths
- Add TermsOfServiceScreen page object and Alert.termsDeclinedTitle
- Add TermsOfService server API helpers (create/enable/disable)
- Add testIDs to the terms of service screen, title and action buttons
2026-09-01 03:03:53 +05:30

25 lines
794 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {createServerLock} from '@support/server_lock';
import type {AcquireLockOptions} from '@support/classification_lock_core';
const classificationLock = createServerLock('classification');
export const createClassificationLockOwner = (): string => {
return classificationLock.createOwner();
};
export const acquireClassificationLock = async (
baseUrl: string,
owner: string,
options: AcquireLockOptions = {},
): Promise<void> => {
return classificationLock.acquire(baseUrl, owner, options);
};
export const releaseClassificationLock = async (baseUrl: string, owner: string): Promise<void> => {
return classificationLock.release(baseUrl, owner);
};