mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 12:50:47 +08:00
e2e(server): broken test after translations were introduced
This commit is contained in:
parent
bf50883e40
commit
360b5d6de4
1 changed files with 2 additions and 3 deletions
|
|
@ -47,15 +47,14 @@ test("User can change language from settings", async ({ page, context }) => {
|
|||
|
||||
// Select Chinese and ensure the translation is set.
|
||||
await languageCombobox.selectOption("cn");
|
||||
|
||||
// Press the refresh button.
|
||||
await app.currentNoteSplit.getByRole("button", { name: "Restart the application" }).click();
|
||||
await app.currentNoteSplit.locator("button.restart-app-button").click();
|
||||
|
||||
await expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 });
|
||||
await expect(languageCombobox).toHaveValue("cn");
|
||||
|
||||
// Select English again.
|
||||
await languageCombobox.selectOption("en");
|
||||
await app.currentNoteSplit.locator("button.restart-app-button").click();
|
||||
await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
|
||||
await expect(languageCombobox).toHaveValue("en");
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue