fix(client): strange behaviour when navigating between tabs (closes #1615)

This commit is contained in:
Elian Doran
2025-04-04 17:57:54 +03:00
parent 6dc2e4088f
commit 67f39e8bde
5 changed files with 98 additions and 56 deletions

View File

@@ -100,3 +100,20 @@ test("Empty tabs are cleared out", async ({ page, context }) => {
// Expect no empty tabs.
expect(await app.tabBar.locator(".note-tab-wrapper").count()).toBe(1);
});
test("Search works when dismissing a tab", async ({ page, context }) => {
const app = new App(page, context);
await app.goto();
await app.goToNoteInNewTab("Table of contents");
await app.openAndClickNoteActionMenu("Search in note");
await expect(app.findAndReplaceWidget).toBeVisible();
app.findAndReplaceWidget.locator(".find-widget-close-button").click();
await app.addNewTab();
await app.goToNoteInNewTab("Sample mindmap");
await app.getTab(0).click();
await app.openAndClickNoteActionMenu("Search in note");
await expect(app.findAndReplaceWidget).toBeVisible();
});