fix change-password e2e tests
parent
234119a562
commit
4be66c8b70
|
@ -9,12 +9,17 @@ var expect = chai.expect;
|
||||||
describe('change password', function() {
|
describe('change password', function() {
|
||||||
before(async function(){
|
before(async function(){
|
||||||
browser.get('http://localhost:9001/user-settings/user-change-password');
|
browser.get('http://localhost:9001/user-settings/user-change-password');
|
||||||
|
|
||||||
await utils.common.waitLoader();
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
utils.common.takeScreenshot('edit-user-profile', 'change-password');
|
utils.common.takeScreenshot('edit-user-profile', 'change-password');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
beforeEach(async function() {
|
||||||
|
browser.get('http://localhost:9001/user-settings/user-change-password');
|
||||||
|
|
||||||
|
await utils.common.waitLoader();
|
||||||
|
});
|
||||||
|
|
||||||
it('retype different', async function() {
|
it('retype different', async function() {
|
||||||
await $('#current-password').sendKeys('123123');
|
await $('#current-password').sendKeys('123123');
|
||||||
await $('#new-password').sendKeys('123456');
|
await $('#new-password').sendKeys('123456');
|
||||||
|
@ -43,6 +48,11 @@ describe('change password', function() {
|
||||||
$('button[type="submit"]').click();
|
$('button[type="submit"]').click();
|
||||||
|
|
||||||
expect(utils.notifications.success.open()).to.be.eventually.equal(true);
|
expect(utils.notifications.success.open()).to.be.eventually.equal(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
after(async function() {
|
||||||
|
browser.get('http://localhost:9001/user-settings/user-change-password');
|
||||||
|
await utils.common.waitLoader();
|
||||||
|
|
||||||
//restore
|
//restore
|
||||||
await $('#current-password').sendKeys('aaabbb');
|
await $('#current-password').sendKeys('aaabbb');
|
||||||
|
@ -50,5 +60,7 @@ describe('change password', function() {
|
||||||
await $('#retype-password').sendKeys('123123');
|
await $('#retype-password').sendKeys('123123');
|
||||||
|
|
||||||
$('button[type="submit"]').click();
|
$('button[type="submit"]').click();
|
||||||
});
|
|
||||||
|
await browser.waitForAngular();
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue