e2e testing, it's hard

pull/567/head
LouisLam 3 years ago
parent e5f6d7f047
commit 67a623be18

@ -151,6 +151,9 @@ describe("Init", () => {
});
it("Change Password (wrong current password)", async () => {
await page.goto(baseURL + "/settings");
await page.waitForSelector("#current-password");
await page.type("#current-password", "wrong_passw$$d");
await page.type("#new-password", "new_password123");
await page.type("#repeat-new-password", "new_password123");
@ -168,6 +171,9 @@ describe("Init", () => {
});
it("Change Password (wrong repeat)", async () => {
await page.goto(baseURL + "/settings");
await page.waitForSelector("#current-password");
await page.type("#current-password", "admin123");
await page.type("#new-password", "new_password123");
await page.type("#repeat-new-password", "new_password1234567898797898");

Loading…
Cancel
Save