Skip to content

Commit dd498a8

Browse files
committed
fix(e2e): check correct Keycloak realm and restore click with force
- Health check now waits for /realms/egapro (the actual app realm) instead of /realms/master which is always available - Restore click on #content in checkUrl but with {force: true} to bypass overlay elements (consent banners, headers) that block clicks
1 parent 2d629bf commit dd498a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
timeout 180 bash -c 'until curl -sf -o /dev/null "$SITE_URL"; do sleep 5; done'
4545
echo "✓ App is ready"
4646
47-
echo "Waiting for Keycloak at $KEYCLOAK_URL ..."
48-
timeout 180 bash -c 'until curl -sf -o /dev/null "$KEYCLOAK_URL/realms/master"; do sleep 5; done'
47+
echo "Waiting for Keycloak realm egapro at $KEYCLOAK_URL ..."
48+
timeout 180 bash -c 'until curl -sf -o /dev/null "$KEYCLOAK_URL/realms/egapro"; do sleep 5; done'
4949
echo "✓ Keycloak is ready"
5050
5151
- name: Run test e2e

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").should("be.visible");
57+
cy.get("#content").click({ force: true });
5858
});
5959

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

0 commit comments

Comments
 (0)