mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 06:04:13 -08:00
[test] fix timeout issue
This commit is contained in:
parent
22227be408
commit
4ded0c073a
|
@ -123,6 +123,6 @@
|
||||||
},
|
},
|
||||||
"testRegex": "./test/*.spec.js",
|
"testRegex": "./test/*.spec.js",
|
||||||
"rootDir": ".",
|
"rootDir": ".",
|
||||||
"testTimeout": 15000
|
"testTimeout": 30000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,14 +75,10 @@ describe("Init", () => {
|
||||||
it("Change Theme", async () => {
|
it("Change Theme", async () => {
|
||||||
// Light
|
// Light
|
||||||
await page.click(".btn[for=btncheck1]");
|
await page.click(".btn[for=btncheck1]");
|
||||||
await page.waitForSelector("div.light", {
|
await page.waitForSelector("div.light");
|
||||||
timeout: 2000
|
|
||||||
});
|
|
||||||
|
|
||||||
await page.click(".btn[for=btncheck2]");
|
await page.click(".btn[for=btncheck2]");
|
||||||
await page.waitForSelector("div.dark", {
|
await page.waitForSelector("div.dark");
|
||||||
timeout: 2000
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue