forgot password

This commit is contained in:
Diego Mello 2020-05-14 15:52:28 -03:00
parent 62bb88429f
commit 5ffd8749d0
1 changed files with 6 additions and 5 deletions

View File

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