From 42bd48b827add7d22a747ad899bf5d3f940039fb Mon Sep 17 00:00:00 2001 From: Maya Date: Sun, 8 Feb 2026 16:36:56 +0000 Subject: [PATCH] tests: create org via OrgSwitcher combobox selector --- frontend/cypress/e2e/organizations.cy.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/cypress/e2e/organizations.cy.ts b/frontend/cypress/e2e/organizations.cy.ts index 42d24178..79e7ed9d 100644 --- a/frontend/cypress/e2e/organizations.cy.ts +++ b/frontend/cypress/e2e/organizations.cy.ts @@ -16,14 +16,13 @@ describe("Organizations (PR #61)", () => { cy.visit("/boards"); // Create a new org via OrgSwitcher. - cy.contains(/org switcher/i, { timeout: 30_000 }).should("be.visible"); - - // Open select and click "Create new org". - cy.contains("button", /select organization/i) + // The switcher is a Shadcn Select trigger (`role=combobox`). + cy.get('button[role="combobox"]', { timeout: 30_000 }) + .first() .should("be.visible") .click(); - cy.contains(/create new org/i).should("be.visible").click(); + cy.contains(/create new org/i, { timeout: 30_000 }).should("be.visible").click(); const orgName = `Cypress Org ${Date.now()}`; cy.get("#org-name").should("be.visible").clear().type(orgName);