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