From d49b93dc7e77962c143e4798344c8e35ab8a637e Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 13 May 2024 08:43:13 -0700 Subject: Replace e2e tests with Maestro (#3983) * Setup maestro tests and convert some initial tests * Remove detox * Replace all tests with maestro --- src/view/com/testing/TestCtrls.e2e.tsx | 11 +++++++---- src/view/com/util/Toast.e2e.tsx | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 src/view/com/util/Toast.e2e.tsx (limited to 'src') diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index 1eb99c4f5..1c82a712e 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -1,11 +1,14 @@ import React from 'react' -import {Pressable, View} from 'react-native' -import {navigate} from '../../../Navigation' -import {useModalControls} from '#/state/modals' +import {LogBox, Pressable, View} from 'react-native' import {useQueryClient} from '@tanstack/react-query' -import {useSessionApi} from '#/state/session' + +import {useModalControls} from '#/state/modals' import {useSetFeedViewPreferencesMutation} from '#/state/queries/preferences' +import {useSessionApi} from '#/state/session' import {useLoggedOutViewControls} from '#/state/shell/logged-out' +import {navigate} from '../../../Navigation' + +LogBox.ignoreAllLogs() /** * This utility component is only included in the test simulator diff --git a/src/view/com/util/Toast.e2e.tsx b/src/view/com/util/Toast.e2e.tsx new file mode 100644 index 000000000..c5582ff0a --- /dev/null +++ b/src/view/com/util/Toast.e2e.tsx @@ -0,0 +1 @@ +export function show() {} -- cgit 1.4.1