Browse Source

[test] fix timeout issue

pull/577/head
LouisLam 3 years ago
parent
commit
4ded0c073a
  1. 2
      package.json
  2. 8
      test/test.spec.js

2
package.json

@ -123,6 +123,6 @@
},
"testRegex": "./test/*.spec.js",
"rootDir": ".",
"testTimeout": 15000
"testTimeout": 30000
}
}

8
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");
});
});

Loading…
Cancel
Save