Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 3958312

Browse files
committed
fix(e2e): flaky test due to navigation
1 parent eb19e31 commit 3958312

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

e2e/i18n.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,16 @@ test("User can change language from settings", async ({ page, context }) => {
4242

4343
// Check that the default value (English) is set.
4444
await expect(app.currentNoteSplit).toContainText("Theme");
45-
const languageCombobox = await app.currentNoteSplit.getByRole("combobox").first();
45+
const languageCombobox = app.currentNoteSplit.getByRole("combobox").first();
4646
await expect(languageCombobox).toHaveValue("en");
4747

4848
// Select Chinese and ensure the translation is set.
4949
await languageCombobox.selectOption("cn");
5050
await expect(app.currentNoteSplit).toContainText("主题", { timeout: 15000 });
51+
await expect(languageCombobox).toHaveValue("cn");
5152

5253
// Select English again.
5354
await languageCombobox.selectOption("en");
5455
await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
56+
await expect(languageCombobox).toHaveValue("en");
5557
});

0 commit comments

Comments
 (0)