mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-11 13:40:12 +00:00
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.
22 lines
524 B
TypeScript
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;
|