forgot password
This commit is contained in:
parent
62bb88429f
commit
5ffd8749d0
|
@ -2,18 +2,19 @@ const {
|
||||||
device, expect, element, by, waitFor
|
device, expect, element, by, waitFor
|
||||||
} = require('detox');
|
} = require('detox');
|
||||||
const data = require('./data');
|
const data = require('./data');
|
||||||
|
const { navigateToLogin } = require('./helpers/app');
|
||||||
|
|
||||||
describe('Forgot password screen', () => {
|
describe.only('Forgot password screen', () => {
|
||||||
before(async() => {
|
before(async() => {
|
||||||
await element(by.id('welcome-view-login')).tap();
|
await device.launchApp({ newInstance: true });
|
||||||
await waitFor(element(by.id('login-view'))).toBeVisible().withTimeout(2000);
|
await navigateToLogin();
|
||||||
await element(by.id('login-view-forgot-password')).tap();
|
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() => {
|
describe('Render', async() => {
|
||||||
it('should have forgot password screen', 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() => {
|
it('should have email input', async() => {
|
Loading…
Reference in New Issue