From 67a623be189542e433f5bae4069d35eeb9d9cc2f Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 7 Oct 2021 17:48:13 +0800 Subject: [PATCH] e2e testing, it's hard --- test/test.spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test.spec.js b/test/test.spec.js index 079b472c8..f59faf155 100644 --- a/test/test.spec.js +++ b/test/test.spec.js @@ -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");