Skip to content

Commit

Permalink
debug cypress ga
Browse files Browse the repository at this point in the history
  • Loading branch information
sam committed Feb 24, 2024
1 parent 7628431 commit 6c76746
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 287 deletions.
284 changes: 0 additions & 284 deletions .github/workflows/ci-test.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci-test2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,5 @@ jobs:
# RUN CYPRESS TESTS ----------------
- name: Run Cypress tests
run: CYPRESS_BASE_URL=http://localhost:8000 CYPRESS_KEYCLOAK_URL=http://localhost:8080 npm run cy:test:main
run: CYPRESS_BASE_URL=http://localhost:8000 CYPRESS_KEYCLOAK_URL=http://localhost:8080 npm run cy:test:oidc

4 changes: 2 additions & 2 deletions cypress/e2e/keycloak/admin/admin1_can_login.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// temporarily disable uncaught exception handling
import {login} from "../keycloak_reusables.cytools";

const keycloakUrl = Cypress.env('KEYCLOAK_URL') || 'http://localhost:8080'
let keycloakUrl = Cypress.env('KEYCLOAK_URL')

if (!keycloakUrl) {
throw new Error('keycloakUrl is not defined')
keycloakUrl = 'http://localhost:8080' // default value need for CI
}

Cypress.on('uncaught:exception', (err, runnable) => {
Expand Down

0 comments on commit 6c76746

Please sign in to comment.