#6427 - SMS Recover Password #2037
|
@ -37,7 +37,6 @@ export default {
|
|||
sendEmailButton: 'vn-recover-password vn-submit',
|
||||
smsOption: 'vn-recover-password vn-radio[val="sms"]',
|
||||
emailOption: 'vn-recover-password vn-radio[val="email"]',
|
||||
|
||||
},
|
||||
accountIndex: {
|
||||
addAccount: 'vn-user-index button vn-icon[icon="add"]',
|
||||
|
|
|
@ -8,7 +8,6 @@ describe('RecoverPassword path', async() => {
|
|||
beforeAll(async() => {
|
||||
browser = await getBrowser();
|
||||
page = browser.page;
|
||||
await page.setRequestInterception(true);
|
||||
});
|
||||
|
||||
beforeEach(async() => {
|
||||
|
@ -65,6 +64,8 @@ describe('RecoverPassword path', async() => {
|
|||
});
|
||||
|
||||
it('should send sms using username', async() => {
|
||||
await page.setRequestInterception(true);
|
||||
|
||||
await page.write(selectors.recoverPassword.email, 'BruceWayne');
|
||||
await page.waitToClick(selectors.recoverPassword.smsOption);
|
||||
page.on('request', request => {
|
||||
|
|
15
e2e/tests.js
15
e2e/tests.js
|
@ -23,7 +23,7 @@ async function test() {
|
|||
const opts = getopts(process.argv.slice(2), {
|
||||
boolean: ['show']
|
||||
});
|
||||
// if (opts.show)
|
||||
if (opts.show)
|
||||
process.env.E2E_SHOW = true;
|
||||
|
||||
console.log('Building and running DB container.');
|
||||
|
@ -37,6 +37,19 @@ async function test() {
|
|||
|
||||
const specFiles = [
|
||||
`./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({
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<span ng-if="$ctrl.method ==='sms'" translate>
|
||||
We will sent you a sms to recover your password
|
||||
</span>
|
||||
<span ng-if="$ctrl.method ==='email' " translate>
|
||||
<span ng-if="$ctrl.method ==='email'" translate>
|
||||
We will sent you an email to recover your password
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
|
||||
We will sent you a item to recover your password: We will sent you a {{mode}} to recover your password
|
|
@ -1,7 +1,6 @@
|
|||
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 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!
|
||||
User or recovery email: Usuario
|
||||
User's phone: Móvil del usuario
|
||||
|
|
|
@ -32,7 +32,6 @@
|
|||
label="Recovery phone"
|
||||
ng-model="$ctrl.user.recoveryPhone"
|
||||
disabled="$root.user.id !== $ctrl.user.id"
|
||||
|
||||
>
|
||||
</vn-textfield>
|
||||
<vn-autocomplete
|
||||
|
|
Loading…
Reference in New Issue