diff --git a/package.json b/package.json index 7202f20de..7558d6822 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,6 @@ }, "testRegex": "./test/*.spec.js", "rootDir": ".", - "testTimeout": 15000 + "testTimeout": 30000 } } diff --git a/test/test.spec.js b/test/test.spec.js index 67505b7d2..2a45c37c3 100644 --- a/test/test.spec.js +++ b/test/test.spec.js @@ -75,14 +75,10 @@ describe("Init", () => { it("Change Theme", async () => { // Light await page.click(".btn[for=btncheck1]"); - await page.waitForSelector("div.light", { - timeout: 2000 - }); + await page.waitForSelector("div.light"); await page.click(".btn[for=btncheck2]"); - await page.waitForSelector("div.dark", { - timeout: 2000 - }); + await page.waitForSelector("div.dark"); }); });