Fix some e2e flaky tests
This commit is contained in:
parent
fd9be240ed
commit
574d2beb3b
|
@ -345,6 +345,7 @@ describe('Room actions screen', () => {
|
||||||
await waitFor(element(by.id('room-actions-members')))
|
await waitFor(element(by.id('room-actions-members')))
|
||||||
.toExist()
|
.toExist()
|
||||||
.withTimeout(2000);
|
.withTimeout(2000);
|
||||||
|
await sleep(300); // wait for animation
|
||||||
await tapAndWaitFor(element(by.id('room-actions-members')), element(by.id('room-members-view')), 2000);
|
await tapAndWaitFor(element(by.id('room-actions-members')), element(by.id('room-members-view')), 2000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -15,11 +15,13 @@ async function clearCache() {
|
||||||
.toBeVisible()
|
.toBeVisible()
|
||||||
.withTimeout(10000);
|
.withTimeout(10000);
|
||||||
await element(by.id('rooms-list-view-sidebar')).tap();
|
await element(by.id('rooms-list-view-sidebar')).tap();
|
||||||
await waitFor(element(by.id('sidebar-view')))
|
await sleep(300); // wait animation
|
||||||
|
await waitFor(element(by.id('sidebar-settings')))
|
||||||
.toBeVisible()
|
.toBeVisible()
|
||||||
.withTimeout(2000);
|
.withTimeout(2000);
|
||||||
await element(by.id('sidebar-settings')).tap();
|
await element(by.id('sidebar-settings')).tap();
|
||||||
await waitFor(element(by.id('settings-view')))
|
await sleep(300); // wait animation
|
||||||
|
await waitFor(element(by.id('settings-view-clear-cache')))
|
||||||
.toBeVisible()
|
.toBeVisible()
|
||||||
.withTimeout(2000);
|
.withTimeout(2000);
|
||||||
await element(by.id('settings-view-clear-cache')).tap();
|
await element(by.id('settings-view-clear-cache')).tap();
|
||||||
|
|
Loading…
Reference in New Issue