A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
e2e tests: signup/delete account
ammarahm-eddde9bb21a10b
diff --git a/apps/mobile/e2e/tests/auth.e2e.js b/apps/mobile/e2e/tests/auth.e2e.jsindex a4d2b8603..6027a0f3d 100644--- a/apps/mobile/e2e/tests/auth.e2e.js+++ b/apps/mobile/e2e/tests/auth.e2e.js@@ -9,15 +9,55 @@ const {} = require('./utils');const { sleep } = require('./utils');+const credentials = {+ username: '[email protected]',+ password: 'testaccount@123'+};+describe('AUTH', () => {+ it('Sign up', async () => {+ await prepare();++ await openSideMenu();+ await tapByText('Login to sync your notes.');+ await sleep(500);+ await tapByText(`Don't have an account? Sign up`);+ await elementById('input.email').typeText(credentials.username);+ await elementById('input.password').typeText(credentials.password);+ await elementById('input.confirmPassword').typeText(credentials.password);+ await elementById('input.confirmPassword').tapReturnKey();+ await sleep(5000);+ await device.pressBack();+ await visibleByText('Tap here to sync your notes.');+ });+it('Login to account', async () => {await prepare();await openSideMenu();await tapByText('Login to sync your notes.');- await elementById('input.email').typeText('[email protected]');- await elementById('input.password').typeText('testaccount@123');+ await elementById('input.email').typeText(credentials.username);+ await elementById('input.password').typeText(credentials.password);await elementById('input.password').tapReturnKey();await sleep(5000);await visibleByText('Tap here to sync your notes.');});++ it.only('Delete account', async () => {+ await prepare();+ await openSideMenu();+ await tapByText('Login to sync your notes.');+ await elementById('input.email').typeText(credentials.username);+ await elementById('input.password').typeText(credentials.password);+ await elementById('input.password').tapReturnKey();+ await sleep(5000);++ await tapByText('Settings');+ await sleep(1000);+ await elementById('scrollview').scrollToIndex(6);+ await sleep(2000);+ await tapByText('Delete account');+ await elementById('input-value').typeText(credentials.password);+ await tapByText('Delete');+ await sleep(5000);+ });});