e2e(server): fix some flakiness in support app

This commit is contained in:
Elian Doran 2026-01-30 08:11:32 +02:00
parent b0910baaf0
commit d8d91451c8
No known key found for this signature in database

View File

@ -59,7 +59,7 @@ export default class App {
// Wait for the page to load.
if (url === "/") {
await expect(this.page.locator(".tree")).toContainText("Trilium Integration Test");
await expect(this.page.locator(".tree", { hasText: "Trilium Integration Test" })).toBeVisible();
if (!preserveTabs) {
await this.closeAllTabs();
}
@ -76,7 +76,7 @@ export default class App {
const suggestionSelector = resultsSelector.locator(".aa-suggestion")
.nth(1); // Select the second one (best candidate), as the first one is "Create a new note"
await expect(suggestionSelector).toContainText(noteTitle);
suggestionSelector.click();
await suggestionSelector.click();
}
async goToSettings() {