Skip to content

Commit 2d629bf

Browse files
committed
fix(e2e): replace click with visibility check in checkUrl
cy.get('#content').click() fails when the main element is covered by a header or banner. Use .should('be.visible') instead, which still ensures hydration is complete without requiring clickability.
1 parent 7c0ce73 commit 2d629bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/app/cypress/support/commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Cypress.Commands.add("clickRadio", (legendText, radioLabel) => {
5454

5555
Cypress.Commands.add("checkUrl", url => {
5656
cy.url().should("include", url);
57-
cy.get("#content").click();
57+
cy.get("#content").should("be.visible");
5858
});
5959

6060
Cypress.Commands.add("loginWithKeycloak", () => {

0 commit comments

Comments
 (0)