fix flaky tests

This commit is contained in:
Diego Mello 2023-02-21 10:01:53 -03:00
parent b4e802d4bf
commit f01b62e70e
3 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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()