Skip to content

Commit

Permalink
fix(e2e): language change breaking other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jan 12, 2025
1 parent 9b85a10 commit 9fd8e4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e/i18n.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
});

0 comments on commit 9fd8e4d

Please sign in to comment.