Skip to content

Build your personal knowledge base with Trilium Notes

test(e2e): read the quick search placeholder off the CodeMirror field

Elian Dorana28e43501ffb
diff --git a/packages/trilium-e2e/src/i18n.spec.ts b/packages/trilium-e2e/src/i18n.spec.ts
index f717bf2bae..41b2464408 100644
--- a/packages/trilium-e2e/src/i18n.spec.ts
+++ b/packages/trilium-e2e/src/i18n.spec.ts
@@ -11,14 +11,14 @@ test("Displays translation on desktop", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
- await expect(page.locator("#left-pane .quick-search input")).toHaveAttribute("placeholder", "Quick search");
+ await expect(page.locator("#left-pane .quick-search .cm-content")).toHaveAttribute("aria-placeholder", "Quick search");
});
test("Displays translation on mobile", async ({ page, context }) => {
const app = new App(page, context);
await app.goto({ isMobile: true });
- await expect(page.locator("#mobile-sidebar-wrapper .quick-search input")).toHaveAttribute("placeholder", "Quick search");
+ await expect(page.locator("#mobile-sidebar-wrapper .quick-search .cm-content")).toHaveAttribute("aria-placeholder", "Quick search");
});
test("Displays translations in Settings", async ({ page, context }) => {