diff options
author | Eric Bailey <git@esb.lol> | 2023-12-05 14:50:56 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 14:50:56 -0600 |
commit | 5f553c29dfdac1bf81debe5e28983a9dbe74bd7f (patch) | |
tree | 6bfabab5623050aed65cdbb8dcc6474aa8f9d9cb /src/view/com/testing/TestCtrls.e2e.tsx | |
parent | ed5a97d0fab249cab91539f0c4dc7d3084bc59a8 (diff) | |
download | voidsky-5f553c29dfdac1bf81debe5e28983a9dbe74bd7f.tar.zst |
E2E 🟢 (#2092)
* Add logged out e2e ctrl, fix login test * Fix log handling via env vars in expo * Fix create account test * Upgrade dev-env * Fix home screen tests * Fix composer tests * Fix curate-lists tests, split in two * Fix invite codes test * Fix curate-lists tests * Give up on mergefeed test * Fix mod lists * Fix app view url * Fix profile tests * Fix profile test with hack * Keep using globals * Fix two more * Fix thread view * Better skip for merge feed * Revert debug code
Diffstat (limited to 'src/view/com/testing/TestCtrls.e2e.tsx')
-rw-r--r-- | src/view/com/testing/TestCtrls.e2e.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index 41abc25d3..e1e899488 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -5,6 +5,7 @@ import {useModalControls} from '#/state/modals' import {useQueryClient} from '@tanstack/react-query' import {useSessionApi} from '#/state/session' import {useSetFeedViewPreferencesMutation} from '#/state/queries/preferences' +import {useLoggedOutViewControls} from '#/state/shell/logged-out' /** * This utility component is only included in the test simulator @@ -19,6 +20,7 @@ export function TestCtrls() { const {logout, login} = useSessionApi() const {openModal} = useModalControls() const {mutate: setFeedViewPref} = useSetFeedViewPreferencesMutation() + const {setShowLoggedOut} = useLoggedOutViewControls() const onPressSignInAlice = async () => { await login({ service: 'http://localhost:3000', @@ -95,6 +97,12 @@ export function TestCtrls() { accessibilityRole="button" style={BTN} /> + <Pressable + testID="e2eOpenLoggedOutView" + onPress={() => setShowLoggedOut(true)} + accessibilityRole="button" + style={BTN} + /> </View> ) } |