Bug 41336: (follow-up) Fix breadcrumb selector in Cypress test

The test was looking for .current class but the Vue component
uses aria-current="page" attribute instead.

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Tomás Cohen Arazi 2025-12-03 10:42:29 -03:00 committed by Lucas Gass
parent 7e7a037f5e
commit 0bc93cf061
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ describe("Breadcrumbs tests", () => {
cy.get(".breadcrumb-item").eq(2).contains("Record sources");
// use the 'New' button
cy.contains("New record source").click();
cy.get(".current").contains("Add record source");
cy.get('[aria-current="page"]').contains("Add record source");
cy.get("#breadcrumbs")
.contains("Record sources")
.should("have.attr", "href")