Fix home screen tests

This commit is contained in:
Eric Bailey
2023-12-04 15:11:35 -06:00
parent 1718816203
commit cb256f651d
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1,5 +1,7 @@
/* eslint-env detox/detox */
import {describe, beforeAll, it} from '@jest/globals'
import {expect} from 'detox'
import {openApp, loginAsAlice, createServer} from '../util'
describe('Home screen', () => {
+2
View File
@@ -7,6 +7,7 @@ import {colors} from 'lib/styles'
import {useTheme} from 'lib/ThemeContext'
import {usePalette} from 'lib/hooks/usePalette'
import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
import {IS_TEST} from '#/env'
const TIMEOUT = 4e3
@@ -14,6 +15,7 @@ export function show(
message: string,
_icon: FontAwesomeProps['icon'] = 'check',
) {
if (IS_TEST) return
const item = new RootSiblings(<Toast message={message} />)
setTimeout(() => {
item.destroy()