From 5ffd8749d0c204b4f9a7e8bdba41230b06166161 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 14 May 2020 15:52:28 -0300 Subject: [PATCH] forgot password --- ...gotpassword.spec.js_ => 03-forgotpassword.spec.js} | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename e2e/{03-forgotpassword.spec.js_ => 03-forgotpassword.spec.js} (74%) diff --git a/e2e/03-forgotpassword.spec.js_ b/e2e/03-forgotpassword.spec.js similarity index 74% rename from e2e/03-forgotpassword.spec.js_ rename to e2e/03-forgotpassword.spec.js index 6d20d04ae..c06a86960 100644 --- a/e2e/03-forgotpassword.spec.js_ +++ b/e2e/03-forgotpassword.spec.js @@ -2,18 +2,19 @@ const { device, expect, element, by, waitFor } = require('detox'); const data = require('./data'); +const { navigateToLogin } = require('./helpers/app'); -describe('Forgot password screen', () => { +describe.only('Forgot password screen', () => { before(async() => { - await element(by.id('welcome-view-login')).tap(); - await waitFor(element(by.id('login-view'))).toBeVisible().withTimeout(2000); + await device.launchApp({ newInstance: true }); + await navigateToLogin(); await element(by.id('login-view-forgot-password')).tap(); - await waitFor(element(by.id('forgot-password-view'))).toBeVisible().withTimeout(2000); + await waitFor(element(by.id('forgot-password-view'))).toExist().withTimeout(2000); }); describe('Render', async() => { it('should have forgot password screen', async() => { - await expect(element(by.id('forgot-password-view'))).toBeVisible(); + await expect(element(by.id('forgot-password-view'))).toExist(); }); it('should have email input', async() => {