Fix E2E tests (#5980)

This commit is contained in:
Hailey
2024-10-28 13:31:24 -07:00
committed by GitHub
parent 0f3fa06c3e
commit 84db1f997b
6 changed files with 25 additions and 22 deletions
-13
View File
@@ -1,8 +1,6 @@
import React from 'react'
import {View} from 'react-native'
import {useNavigation} from '@react-navigation/native'
import {NavigationProp} from '#/lib/routes/types'
import {useDialogStateControlContext} from '#/state/dialogs'
import {atoms as a} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
@@ -25,7 +23,6 @@ export function Dialogs() {
const [shouldRenderUnmountTest, setShouldRenderUnmountTest] =
React.useState(false)
const unmountTestInterval = React.useRef<number>()
const navigation = useNavigation<NavigationProp>()
const onUnmountTestStartPressWithClose = () => {
setShouldRenderUnmountTest(true)
@@ -152,16 +149,6 @@ export function Dialogs() {
<ButtonText>End Unmount Test</ButtonText>
</Button>
<Button
variant="solid"
color="primary"
size="small"
onPress={() => navigation.navigate('SharedPreferencesTester')}
label="two"
testID="sharedPrefsTestOpenBtn">
<ButtonText>Open Shared Prefs Tester</ButtonText>
</Button>
<Button
variant="solid"
color="primary"