diff --git a/e2e/helpers/app.ts b/e2e/helpers/app.ts index 2bfda548e..873eda713 100644 --- a/e2e/helpers/app.ts +++ b/e2e/helpers/app.ts @@ -60,8 +60,9 @@ async function login(username: string, password: string) { .toExist() .withTimeout(2000); await element(by.id('login-view-email')).replaceText(username); + await element(by.id('login-view-email')).tapReturnKey(); await element(by.id('login-view-password')).replaceText(password); - await element(by.id('login-view-submit')).tap(); + await element(by.id('login-view-password')).tapReturnKey(); await waitFor(element(by.id('rooms-list-view'))) .toExist() .withTimeout(30000); diff --git a/e2e/tests/onboarding/05-login.spec.ts b/e2e/tests/onboarding/05-login.spec.ts index 62f641fb9..62a78845c 100644 --- a/e2e/tests/onboarding/05-login.spec.ts +++ b/e2e/tests/onboarding/05-login.spec.ts @@ -74,8 +74,9 @@ describe('Login screen', () => { it('should insert wrong password and get error', async () => { await element(by.id('login-view-email')).replaceText(data.users.regular.username); + await element(by.id('login-view-email')).tapReturnKey(); await element(by.id('login-view-password')).replaceText('NotMyActualPassword'); - await element(by.id('login-view-submit')).tap(); + await element(by.id('login-view-password')).tapReturnKey(); await waitFor(element(by[textMatcher]('Your credentials were rejected! Please try again.'))) .toBeVisible() .withTimeout(10000); @@ -84,7 +85,7 @@ describe('Login screen', () => { it('should login with success', async () => { await element(by.id('login-view-password')).replaceText(data.users.regular.password); - await element(by.id('login-view-submit')).tap(); + await element(by.id('login-view-password')).tapReturnKey(); await waitFor(element(by.id('rooms-list-view'))) .toBeVisible() .withTimeout(60000);