From feeec793eb3a42e2bcf76ab7465cb845cfb1e0f1 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 28 Feb 2023 16:46:18 -0300 Subject: [PATCH] Fix some tests --- e2e/tests/room/09-jumptomessage.spec.ts | 4 ++-- e2e/tests/team/02-team.spec.ts | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/e2e/tests/room/09-jumptomessage.spec.ts b/e2e/tests/room/09-jumptomessage.spec.ts index 137ad31c8..932915104 100644 --- a/e2e/tests/room/09-jumptomessage.spec.ts +++ b/e2e/tests/room/09-jumptomessage.spec.ts @@ -69,7 +69,7 @@ describe('Room', () => { await waitForLoading(); await waitFor(element(by[textMatcher]('1')).atIndex(0)) .toExist() - .withTimeout(10000); + .withTimeout(30000); await expect(element(by[textMatcher]('2'))).toExist(); }); @@ -97,7 +97,7 @@ describe('Room', () => { .withTimeout(5000); await waitFor(element(by[textMatcher]('300'))) .toExist() - .withTimeout(5000); + .withTimeout(30000); let found = false; while (!found) { try { diff --git a/e2e/tests/team/02-team.spec.ts b/e2e/tests/team/02-team.spec.ts index 9c087609d..80f3efe30 100644 --- a/e2e/tests/team/02-team.spec.ts +++ b/e2e/tests/team/02-team.spec.ts @@ -288,35 +288,35 @@ describe('Team', () => { it('should add users to the team', async () => { await element(by.id('room-actions-members')).tap(); await waitFor(element(by.id('room-members-view'))) - .toExist() + .toBeVisible() .withTimeout(2000); await waitFor(element(by.id('room-actions-add-user'))) - .toExist() + .toBeVisible() .withTimeout(10000); await element(by.id('room-actions-add-user')).tap(); const rocketCat = 'rocket.cat'; await element(by.id('select-users-view-search')).replaceText('rocket.cat'); await waitFor(element(by.id(`select-users-view-item-${rocketCat}`))) - .toExist() + .toBeVisible() .withTimeout(10000); await element(by.id(`select-users-view-item-${rocketCat}`)).tap(); await waitFor(element(by.id(`selected-user-${rocketCat}`))) - .toExist() + .toBeVisible() .withTimeout(5000); await waitFor(element(by.id('select-users-view-search'))) - .toExist() + .toBeVisible() .withTimeout(4000); await element(by.id('select-users-view-search')).tap(); await element(by.id('select-users-view-search')).replaceText(otherUser.username); await waitFor(element(by.id(`select-users-view-item-${otherUser.username}`))) - .toExist() + .toBeVisible() .withTimeout(10000); await element(by.id(`select-users-view-item-${otherUser.username}`)).tap(); await waitFor(element(by.id(`selected-user-${otherUser.username}`))) - .toExist() + .toBeVisible() .withTimeout(5000); await element(by.id('selected-users-view-submit')).tap(); @@ -324,16 +324,16 @@ describe('Team', () => { await tapBack(); await sleep(300); await waitFor(element(by.id('room-actions-members'))) - .toExist() + .toBeVisible() .withTimeout(10000); await element(by.id('room-actions-members')).tap(); await element(by.id('room-members-view-filter')).tap(); await waitFor(element(by.id('room-members-view-toggle-status-all'))) - .toExist() + .toBeVisible() .withTimeout(2000); await element(by.id('room-members-view-toggle-status-all')).tap(); await waitFor(element(by.id(`room-members-view-item-${otherUser.username}`))) - .toExist() + .toBeVisible() .withTimeout(60000); await backToActions(); });