From a59d966ce4eec4a28af0b4f380e3168861bdac19 Mon Sep 17 00:00:00 2001 From: Joseph Baylon Date: Mon, 6 Feb 2023 14:00:58 -0800 Subject: [PATCH] Fix search messages e2e for android --- detox/e2e/support/ui/screen/channel.ts | 1 + detox/e2e/support/ui/screen/search_messages.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/detox/e2e/support/ui/screen/channel.ts b/detox/e2e/support/ui/screen/channel.ts index d841bacd3f..5aa494285f 100644 --- a/detox/e2e/support/ui/screen/channel.ts +++ b/detox/e2e/support/ui/screen/channel.ts @@ -110,6 +110,7 @@ class ChannelScreen { }; toBeVisible = async () => { + await wait(timeouts.ONE_SEC); await waitFor(this.channelScreen).toExist().withTimeout(timeouts.TEN_SEC); return this.channelScreen; diff --git a/detox/e2e/support/ui/screen/search_messages.ts b/detox/e2e/support/ui/screen/search_messages.ts index bf7a873fba..aa5b92868d 100644 --- a/detox/e2e/support/ui/screen/search_messages.ts +++ b/detox/e2e/support/ui/screen/search_messages.ts @@ -72,6 +72,7 @@ class SearchMessagesScreen { }; toBeVisible = async () => { + await wait(timeouts.ONE_SEC); await waitFor(this.searchMessagesScreen).toExist().withTimeout(timeouts.TEN_SEC); return this.searchMessagesScreen;