Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
e2e: fix failing test
Adorian Doran421f889c85e0
diff --git a/packages/trilium-e2e/src/support/app.ts b/packages/trilium-e2e/src/support/app.tsindex 79d6531adb..4cd4263c96 100644--- a/packages/trilium-e2e/src/support/app.ts+++ b/packages/trilium-e2e/src/support/app.ts@@ -235,7 +235,12 @@ export default class App {const locator = _locator as DropdownLocator;locator.selectOptionByText = async (text: string) => {await locator.locator(".dropdown-toggle").click();- await locator.locator(".dropdown-item", { hasText: text }).click();+ // The menu is not always a child of the dropdown it belongs to: one opened inside a+ // card is carried out to the body, the card being a container and so a backdrop root+ // that would otherwise flatten its blur. Found by being the open one instead.+ await this.page.locator(".dropdown-menu.show")+ .locator(".dropdown-item", { hasText: text })+ .click();};return locator;}