From aa1cfed0332b31c257af23f476598e1cbda53fc2 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 1 Mar 2023 15:30:52 -0300 Subject: [PATCH] Fix flaky discussion --- e2e/tests/room/04-discussion.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/tests/room/04-discussion.spec.ts b/e2e/tests/room/04-discussion.spec.ts index 84e1afa37..e6be424f3 100644 --- a/e2e/tests/room/04-discussion.spec.ts +++ b/e2e/tests/room/04-discussion.spec.ts @@ -71,8 +71,9 @@ describe('Discussion', () => { it('should create discussion from Messagebox Actions', async () => { await navigateToRoom(room); await element(by.id('messagebox-actions')).tap(); + await sleep(300); // wait for animation await waitFor(element(by.id('action-sheet'))) - .toExist() + .toBeVisible() .withTimeout(2000); await element(by[textMatcher]('Create Discussion')).atIndex(0).tap(); await waitFor(element(by.id('create-discussion-view')))