From 66364f5ce0e4548263e8b3415c24bc6fe4a51484 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 30 Jul 2025 11:03:12 +0300 Subject: [PATCH] test(server/e2e): add more assertions to try to avoid flaky test --- apps/server-e2e/src/layout/tab_bar.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/server-e2e/src/layout/tab_bar.spec.ts b/apps/server-e2e/src/layout/tab_bar.spec.ts index 4ac282e71..3f81eb26a 100644 --- a/apps/server-e2e/src/layout/tab_bar.spec.ts +++ b/apps/server-e2e/src/layout/tab_bar.spec.ts @@ -73,6 +73,9 @@ test("Tabs are restored in right order", async ({ page, context }) => { // Select the mid one. await app.getTab(1).click(); await expect(app.noteTreeActiveNote).toContainText("Text notes"); + await expect(app.getTab(0)).toContainText("Code notes"); + await expect(app.getTab(1)).toContainText("Text notes"); + await expect(app.getTab(2)).toContainText("Mermaid"); // Refresh the page and check the order. await app.goto( { preserveTabs: true });