Skip to content

Build your personal knowledge base with Trilium Notes

fix(e2e): flaky test due to timeout

Elian Doran093f9d60f038
diff --git a/e2e/i18n.spec.ts b/e2e/i18n.spec.ts
index d075a61ba0..70713f0978 100644
--- a/e2e/i18n.spec.ts
+++ b/e2e/i18n.spec.ts
@@ -49,9 +49,9 @@ test("User can change language from settings", async ({ page, context }) => {
// Select Chinese and ensure the translation is set.
await languageCombobox.selectOption("cn");
- await expect(app.currentNoteSplit).toContainText("主题");
+ await expect(app.currentNoteSplit).toContainText("主题", { timeout: 15000 });
// Select English again.
await languageCombobox.selectOption("en");
- await expect(app.currentNoteSplit).toContainText("Language");
+ await expect(app.currentNoteSplit).toContainText("Language", { timeout: 15000 });
});