diff --git a/e2e/i18n.spec.ts b/e2e/i18n.spec.ts index b4c9a0842..da5be4e19 100644 --- a/e2e/i18n.spec.ts +++ b/e2e/i18n.spec.ts @@ -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"); });