|
1 | 1 | import Config from 'react-native-config';
|
2 | 2 | import type {NativeConfig} from 'react-native-config';
|
3 |
| -import * as E2EGenericPressableWrapper from '@components/Pressable/GenericPressable/index.e2e'; |
4 | 3 | import E2ELogin from '@libs/E2E/actions/e2eLogin';
|
5 | 4 | import waitForAppLoaded from '@libs/E2E/actions/waitForAppLoaded';
|
6 | 5 | import E2EClient from '@libs/E2E/client';
|
@@ -36,29 +35,6 @@ const test = (config: NativeConfig) => {
|
36 | 35 |
|
37 | 36 | Performance.subscribeToMeasurements((entry) => {
|
38 | 37 | console.debug(`[E2E] Entry: ${JSON.stringify(entry)}`);
|
39 |
| - if (entry.name === CONST.TIMING.SIDEBAR_LOADED) { |
40 |
| - const props = E2EGenericPressableWrapper.getPressableProps('searchButton'); |
41 |
| - if (!props) { |
42 |
| - console.debug('[E2E] Search button not found, failing test!'); |
43 |
| - E2EClient.submitTestResults({ |
44 |
| - branch: Config.E2E_BRANCH, |
45 |
| - error: 'Search button not found', |
46 |
| - name: `${name} Open Search Router TTI`, |
47 |
| - }).then(() => E2EClient.submitTestDone()); |
48 |
| - return; |
49 |
| - } |
50 |
| - if (!props.onPress) { |
51 |
| - console.debug('[E2E] Search button found but onPress prop was not present, failing test!'); |
52 |
| - E2EClient.submitTestResults({ |
53 |
| - branch: Config.E2E_BRANCH, |
54 |
| - error: 'Search button found but onPress prop was not present', |
55 |
| - name: `${name} Open Search Router TTI`, |
56 |
| - }).then(() => E2EClient.submitTestDone()); |
57 |
| - return; |
58 |
| - } |
59 |
| - // Open the search router |
60 |
| - props.onPress(); |
61 |
| - } |
62 | 38 |
|
63 | 39 | if (entry.name === CONST.TIMING.SEARCH_ROUTER_RENDER) {
|
64 | 40 | E2EClient.submitTestResults({
|
|
0 commit comments