From 12d4c097fef217daba455c7ecda08e6834462ecc Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 7 Feb 2023 14:01:20 -0300 Subject: [PATCH] Remove render checks --- e2e/tests/onboarding/05-login.spec.ts | 61 --------------------------- 1 file changed, 61 deletions(-) diff --git a/e2e/tests/onboarding/05-login.spec.ts b/e2e/tests/onboarding/05-login.spec.ts index 62a78845c..40b6ee071 100644 --- a/e2e/tests/onboarding/05-login.spec.ts +++ b/e2e/tests/onboarding/05-login.spec.ts @@ -1,5 +1,3 @@ -import { expect } from 'detox'; - import { navigateToLogin, tapBack, platformTypes, navigateToWorkspace, login, TTextMatcher } from '../../helpers/app'; import data from '../../data'; @@ -12,66 +10,7 @@ describe('Login screen', () => { await navigateToLogin(); }); - describe('Render', () => { - it('should have login screen', async () => { - await expect(element(by.id('login-view'))).toExist(); - }); - - it('should have email input', async () => { - await expect(element(by.id('login-view-email'))).toBeVisible(); - }); - - it('should have password input', async () => { - await expect(element(by.id('login-view-password'))).toBeVisible(); - }); - - it('should have submit button', async () => { - await expect(element(by.id('login-view-submit'))).toBeVisible(); - }); - - it('should have register button', async () => { - await expect(element(by.id('login-view-register'))).toBeVisible(); - }); - - it('should have forgot password button', async () => { - await expect(element(by.id('login-view-forgot-password'))).toBeVisible(); - }); - - it('should have legal button', async () => { - await expect(element(by.id('login-view-more'))).toBeVisible(); - }); - }); - describe('Usage', () => { - it('should navigate to register', async () => { - await element(by.id('login-view-register')).tap(); - await waitFor(element(by.id('register-view'))) - .toExist() - .withTimeout(2000); - await tapBack(); - }); - - it('should navigate to forgot password', async () => { - 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(); - }); - 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();