From 20f886e93358bf7ab1283a58f700bd2009774208 Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 21 Jun 2022 13:58:47 +0200 Subject: [PATCH] change email and text info in email field --- e2e/paths/02-client/07_edit_web_access.spec.js | 10 ++++++++-- modules/client/front/web-access/index.html | 3 +-- modules/client/front/web-access/locale/es.yml | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/e2e/paths/02-client/07_edit_web_access.spec.js b/e2e/paths/02-client/07_edit_web_access.spec.js index e5aa44a26..8d8036373 100644 --- a/e2e/paths/02-client/07_edit_web_access.spec.js +++ b/e2e/paths/02-client/07_edit_web_access.spec.js @@ -9,7 +9,7 @@ describe('Client Edit web access path', () => { browser = await getBrowser(); page = browser.page; await page.loginAndModule('employee', 'client'); - await page.accessToSearchResult('1105'); + await page.accessToSearchResult('max'); await page.accessToSection('client.card.webAccess'); }); @@ -36,7 +36,7 @@ describe('Client Edit web access path', () => { it(`should update the email`, async() => { await page.clearInput(selectors.clientWebAccess.email); - await page.write(selectors.clientWebAccess.email, 'hulk@marvel.com'); + await page.write(selectors.clientWebAccess.email, 'legion@marvel.com'); await page.waitToClick(selectors.clientWebAccess.saveButton); const message = await page.waitForSnackbar(); @@ -56,6 +56,12 @@ describe('Client Edit web access path', () => { expect(result).toEqual('Legion'); }); + it('should confirm web access email have been updated', async() => { + const result = await page.waitToGetProperty(selectors.clientWebAccess.email, 'value'); + + expect(result).toEqual('legion@marvel.com'); + }); + it(`should navigate to the log section`, async() => { await page.accessToSection('client.card.log'); }); diff --git a/modules/client/front/web-access/index.html b/modules/client/front/web-access/index.html index 6fb50cfd9..b776fa577 100644 --- a/modules/client/front/web-access/index.html +++ b/modules/client/front/web-access/index.html @@ -37,11 +37,10 @@ diff --git a/modules/client/front/web-access/locale/es.yml b/modules/client/front/web-access/locale/es.yml index 74f789f8f..5090ed020 100644 --- a/modules/client/front/web-access/locale/es.yml +++ b/modules/client/front/web-access/locale/es.yml @@ -6,4 +6,4 @@ Change password: Cambiar contraseña Passwords don't match: Las contraseñas no coinciden You must enter a new password: Debes introducir una nueva contraseña Recovery email: Correo de recuperación -This email is used for user to regain access to an account you're unable to sign in to.: Este correo electrónico se usa para que el usuario recupere el acceso a una cuenta en la que no puede iniciar sesión. \ No newline at end of file +This email is used for user to regain access their account.: Este correo electrónico se usa para que el usuario recupere el acceso a su cuenta. \ No newline at end of file