Run login only
This commit is contained in:
parent
b332bfecd4
commit
efaabd891a
|
@ -2,7 +2,7 @@
|
|||
module.exports = {
|
||||
rootDir: '..',
|
||||
setupFilesAfterEnv: ['<rootDir>/e2e/tests/init.ts'],
|
||||
testMatch: ['<rootDir>/e2e/tests/**/*.spec.ts'],
|
||||
testMatch: ['<rootDir>/e2e/tests/onboarding/05-login.spec.ts'],
|
||||
testTimeout: 120000,
|
||||
maxWorkers: 1,
|
||||
globalSetup: 'detox/runners/jest/globalSetup',
|
||||
|
|
|
@ -20,6 +20,7 @@ async function openJoinCode() {
|
|||
.toExist()
|
||||
.withTimeout(2000);
|
||||
let n = 0;
|
||||
// FIXME: this while is always matching 3 loops
|
||||
while (n < 3) {
|
||||
try {
|
||||
await element(by.id('room-view-join-button')).tap();
|
||||
|
|
|
@ -52,10 +52,23 @@ describe('Login screen', () => {
|
|||
});
|
||||
|
||||
it('should navigate to forgot password', async () => {
|
||||
await element(by.id('login-view-forgot-password')).tap();
|
||||
await waitFor(element(by.id('forgot-password-view')))
|
||||
.toExist()
|
||||
await expect(element(by.id('login-view-more'))).toBeVisible();
|
||||
await waitFor(element(by.id('login-view-forgot-password')))
|
||||
.toBeVisible()
|
||||
.withTimeout(2000);
|
||||
|
||||
let n = 0;
|
||||
while (n < 3) {
|
||||
try {
|
||||
await element(by.id('login-view-forgot-password')).tap();
|
||||
await waitFor(element(by.id('forgot-password-view')))
|
||||
.toExist()
|
||||
.withTimeout(2000);
|
||||
n = 3;
|
||||
} catch (error) {
|
||||
n += 1;
|
||||
}
|
||||
}
|
||||
await tapBack();
|
||||
});
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
export NODE_BINARY="/Users/diegomello/.nvm/versions/node/v14.20.0/bin/node"
|
Loading…
Reference in New Issue