[test] github action please ok🙏🏻🙏🏻🙏🏻

This commit is contained in:
LouisLam 2021-10-07 18:47:44 +08:00
parent 34586d7b8f
commit 3c60800eab

View File

@ -162,7 +162,7 @@ describe("Init", () => {
await click(page, "form > div > .btn[type=submit]", 1); await click(page, "form > div > .btn[type=submit]", 1);
await sleep(4000); await sleep(4000);
await click(page, ".btn-danger.btn.me-1"); await click(page, ".btn-danger.btn.me-2");
await login("admin", "new_password123"); await login("admin", "new_password123");
let elementCount = await page.evaluate(() => document.querySelectorAll("#floatingPassword").length); let elementCount = await page.evaluate(() => document.querySelectorAll("#floatingPassword").length);
expect(elementCount).toEqual(1); expect(elementCount).toEqual(1);
@ -181,7 +181,7 @@ describe("Init", () => {
await click(page, "form > div > .btn[type=submit]", 1); await click(page, "form > div > .btn[type=submit]", 1);
await sleep(4000); await sleep(4000);
await click(page, ".btn-danger.btn.me-1"); await click(page, ".btn-danger.btn.me-2");
await login("admin", "new_password123"); await login("admin", "new_password123");
let elementCount = await page.evaluate(() => document.querySelectorAll("#floatingPassword").length); let elementCount = await page.evaluate(() => document.querySelectorAll("#floatingPassword").length);