fix flaky tests
This commit is contained in:
parent
b4e802d4bf
commit
f01b62e70e
|
@ -16,7 +16,7 @@ describe('Create user screen', () => {
|
|||
await element(by.id('register-view-email')).replaceText(data.registeringUser.email);
|
||||
await element(by.id('register-view-email')).tapReturnKey();
|
||||
await element(by.id('register-view-password')).replaceText(data.registeringUser.password);
|
||||
await element(by.id('login-view-password')).tapReturnKey();
|
||||
await element(by.id('register-view-password')).tapReturnKey();
|
||||
await waitFor(element(by.id('rooms-list-view')))
|
||||
.toBeVisible()
|
||||
.withTimeout(60000);
|
||||
|
|
|
@ -366,7 +366,7 @@ describe('Room screen', () => {
|
|||
await waitFor(element(by.id('emoji-searchbar-input')))
|
||||
.toExist()
|
||||
.withTimeout(2000);
|
||||
await element(by.id('emoji-searchbar-input')).typeText('laughing');
|
||||
await element(by.id('emoji-searchbar-input')).replaceText('laughing');
|
||||
await waitFor(element(by.id('emoji-laughing')))
|
||||
.toExist()
|
||||
.withTimeout(4000);
|
||||
|
|
|
@ -167,6 +167,7 @@ describe('Move/Convert Team', () => {
|
|||
await waitFor(element(by.id(`select-list-view-item-${toBeMoved}`)))
|
||||
.toExist()
|
||||
.withTimeout(2000);
|
||||
await sleep(300); // wait for animation
|
||||
await element(by.id(`select-list-view-item-${toBeMoved}`)).tap();
|
||||
await waitFor(element(by.id('select-list-view-submit')))
|
||||
.toExist()
|
||||
|
|
Loading…
Reference in New Issue