From 4a6f77eed36ed81459fc0efda99a9adf3f0e2aeb Mon Sep 17 00:00:00 2001 From: Abhimanyu Saharan Date: Thu, 12 Feb 2026 09:10:42 +0000 Subject: [PATCH] test(e2e): select New task button by aria-label --- frontend/cypress/e2e/board_tasks.cy.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/cypress/e2e/board_tasks.cy.ts b/frontend/cypress/e2e/board_tasks.cy.ts index aedc6f10..464dce21 100644 --- a/frontend/cypress/e2e/board_tasks.cy.ts +++ b/frontend/cypress/e2e/board_tasks.cy.ts @@ -159,9 +159,8 @@ describe("/boards/:id task board", () => { cy.contains("Inbox task").should("be.visible"); // Open create task flow. - cy.contains("button", /create task|new task|add task|\+/i) - .first() - .click({ force: true }); + // Board page uses an icon-only button with aria-label="New task". + cy.get('button[aria-label="New task"]').click({ force: true }); cy.get("input") .filter(