mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 10:28:05 +00:00
[test] wait for #language
This commit is contained in:
parent
2b00e59c7a
commit
cb263f2a08
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue