#6427 - SMS Recover Password #2037

Open
jsegarra wants to merge 72 commits from 6427_sms_resetPassword into dev
9 changed files with 20 additions and 11 deletions
Showing only changes of commit a29ec11652 - Show all commits

View File

@ -37,7 +37,6 @@ export default {
sendEmailButton: 'vn-recover-password vn-submit', sendEmailButton: 'vn-recover-password vn-submit',
smsOption: 'vn-recover-password vn-radio[val="sms"]', smsOption: 'vn-recover-password vn-radio[val="sms"]',
emailOption: 'vn-recover-password vn-radio[val="email"]', emailOption: 'vn-recover-password vn-radio[val="email"]',
}, },
accountIndex: { accountIndex: {
addAccount: 'vn-user-index button vn-icon[icon="add"]', addAccount: 'vn-user-index button vn-icon[icon="add"]',

View File

@ -8,7 +8,6 @@ describe('RecoverPassword path', async() => {
beforeAll(async() => { beforeAll(async() => {
browser = await getBrowser(); browser = await getBrowser();
page = browser.page; page = browser.page;
await page.setRequestInterception(true);
}); });
beforeEach(async() => { beforeEach(async() => {
@ -65,6 +64,8 @@ describe('RecoverPassword path', async() => {
}); });
it('should send sms using username', async() => { it('should send sms using username', async() => {
await page.setRequestInterception(true);
await page.write(selectors.recoverPassword.email, 'BruceWayne'); await page.write(selectors.recoverPassword.email, 'BruceWayne');
await page.waitToClick(selectors.recoverPassword.smsOption); await page.waitToClick(selectors.recoverPassword.smsOption);
page.on('request', request => { page.on('request', request => {

View File

@ -23,7 +23,7 @@ async function test() {
const opts = getopts(process.argv.slice(2), { const opts = getopts(process.argv.slice(2), {
boolean: ['show'] boolean: ['show']
}); });
// if (opts.show) if (opts.show)
process.env.E2E_SHOW = true; process.env.E2E_SHOW = true;
console.log('Building and running DB container.'); console.log('Building and running DB container.');
@ -37,6 +37,19 @@ async function test() {
const specFiles = [ const specFiles = [
`./e2e/paths/01*/*[sS]pec.js`, `./e2e/paths/01*/*[sS]pec.js`,
`./e2e/paths/02*/*[sS]pec.js`,
`./e2e/paths/03*/*[sS]pec.js`,
`./e2e/paths/04*/*[sS]pec.js`,
`./e2e/paths/05*/*[sS]pec.js`,
`./e2e/paths/06*/*[sS]pec.js`,
`./e2e/paths/07*/*[sS]pec.js`,
`./e2e/paths/08*/*[sS]pec.js`,
`./e2e/paths/09*/*[sS]pec.js`,
`./e2e/paths/10*/*[sS]pec.js`,
`./e2e/paths/11*/*[sS]pec.js`,
`./e2e/paths/12*/*[sS]pec.js`,
`./e2e/paths/13*/*[sS]pec.js`,
`./e2e/paths/**/*[sS]pec.js`
]; ];
jasmine.loadConfig({ jasmine.loadConfig({

View File

@ -1,2 +0,0 @@
We will sent you a item to recover your password: We will sent you a {{mode}} to recover your password

View File

@ -1,7 +1,6 @@
Recover password: Recuperar contraseña Recover password: Recuperar contraseña
We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña
We will sent you a sms to recover your password: Te enviaremos un sms para restablecer tu contraseña We will sent you a sms to recover your password: Te enviaremos un sms para restablecer tu contraseña
We will sent you a item to recover your password: Te enviaremos un {{mode}} para restablecer tu contraseña
Notification sent!: ¡Notificación enviada! Notification sent!: ¡Notificación enviada!
User or recovery email: Usuario User or recovery email: Usuario
User's phone: Móvil del usuario User's phone: Móvil del usuario

View File

@ -32,7 +32,6 @@
label="Recovery phone" label="Recovery phone"
ng-model="$ctrl.user.recoveryPhone" ng-model="$ctrl.user.recoveryPhone"
disabled="$root.user.id !== $ctrl.user.id" disabled="$root.user.id !== $ctrl.user.id"
> >
jsegarra marked this conversation as resolved Outdated
Outdated
Review

Corregir tabulación

Corregir tabulación
</vn-textfield> </vn-textfield>
<vn-autocomplete <vn-autocomplete