From 4ded0c073af8a81b73d84bc439eb3442d02fc172 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Wed, 6 Oct 2021 13:26:43 +0800 Subject: [PATCH] [test] fix timeout issue --- package.json | 2 +- test/test.spec.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) 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"); }); });