mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-17 16:51:57 +08:00
fix(e2e): language change breaking other tests
This commit is contained in:
parent
9b85a101a6
commit
9fd8e4d030
@ -42,9 +42,10 @@ test("User can change language from settings", async ({ page, context }) => {
|
||||
await expect(languageCombobox).toHaveValue("en");
|
||||
|
||||
// Select Chinese and ensure the translation is set.
|
||||
languageCombobox.selectOption("cn");
|
||||
await languageCombobox.selectOption("cn");
|
||||
await expect(app.currentNoteSplit).toContainText("主题");
|
||||
|
||||
// Select English again.
|
||||
languageCombobox.selectOption("en");
|
||||
await languageCombobox.selectOption("en");
|
||||
await expect(app.currentNoteSplit).toContainText("Language");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user