mattermost-mobile-upstream/detox/e2e/support/ui/screen/code.ts
yasser khan f3af9dbe99
Fix/detox hittest cluster (#10023)
fix(e2e): stabilize Detox and Maestro test suite

Restore main features, and harden the E2E harness against flaky UI, network, retry, synchronization, and classification-lock failures.

Stabilize channel creation, saved messages, bookmarks, search, deep links, keyboard dismissal, and post verification.
Bound network, transport, health-check, synchronization, and lock retries by elapsed time.
Fix iOS and Android Maestro/Detox races and flaky interaction flows.
Restore Session Attributes and deep-link fixes lost during merge.
Improve test isolation, global-setting cleanup, and Jest/TSIO reporting.
Enforce Maestro flow-header validation in local and CI checks.
2026-08-27 08:58:03 +05:30

22 lines
524 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {timeouts} from '@support/utils';
import {waitFor} from 'detox';
class CodeScreen {
testID = {
title: 'code.screen.title',
};
title = element(by.id(this.testID.title));
toBeVisible = async () => {
await waitFor(this.title).toBeVisible().withTimeout(timeouts.TEN_SEC);
return this.title;
};
}
const codeScreen = new CodeScreen();
export default codeScreen;