[test] wait for #language

This commit is contained in:
LouisLam 2021-10-06 15:34:57 +08:00
parent 2b00e59c7a
commit cb263f2a08

View File

@ -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("語言");