[test] wait for #language

pull/577/head
LouisLam 3 years ago
parent 2b00e59c7a
commit cb263f2a08

@ -71,6 +71,8 @@ describe("Init", () => {
});
it("Change Language", async () => {
await page.waitForSelector("#language");
await page.select("#language", "zh-HK");
let languageTitle = await page.evaluate(() => document.querySelector("[for=language]").innerText);
expect(languageTitle).toMatch("語言");

Loading…
Cancel
Save