Skip to content

Build your personal knowledge base with Trilium Notes

test(i18n): add refresh button click after language change

--globalfd0018677c95
diff --git a/e2e/i18n.spec.ts b/e2e/i18n.spec.ts
index 21fd1880b2..0124f271be 100644
--- a/e2e/i18n.spec.ts
+++ b/e2e/i18n.spec.ts
@@ -47,6 +47,10 @@ 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 expect(app.currentNoteSplit).toContainText("一周的第一天", { timeout: 15000 });
await expect(languageCombobox).toHaveValue("cn");