From 5342b50bac6062e578575ddbdce546e8e3984975 Mon Sep 17 00:00:00 2001 From: jasquat Date: Thu, 16 Feb 2023 12:09:44 -0500 Subject: [PATCH 1/3] added some support for using the backend openid server for cypress tests w/ burnettk --- .github/workflows/frontend_tests.yml | 1 + .../openid_blueprint/templates/login.html | 6 ++--- spiffworkflow-frontend/cypress.config.js | 2 +- .../cypress/e2e/process_groups.cy.js | 2 +- .../cypress/support/commands.js | 22 ++++++++++++++----- .../src/components/ProcessGroupListTiles.tsx | 8 ++++++- 6 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.github/workflows/frontend_tests.yml b/.github/workflows/frontend_tests.yml index f4ec6360..b0ed9bc4 100644 --- a/.github/workflows/frontend_tests.yml +++ b/.github/workflows/frontend_tests.yml @@ -101,6 +101,7 @@ jobs: CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} # pass GitHub token to allow accurately detecting a build vs a re-run build GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SPIFFWORKFLOW_FRONTEND_AUTH_WITH_KEYCLOAK: "true" - name: get_backend_logs_from_docker_compose if: failure() working-directory: ./spiffworkflow-backend diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/openid_blueprint/templates/login.html b/spiffworkflow-backend/src/spiffworkflow_backend/routes/openid_blueprint/templates/login.html index a64322a4..858355c3 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/openid_blueprint/templates/login.html +++ b/spiffworkflow-backend/src/spiffworkflow_backend/routes/openid_blueprint/templates/login.html @@ -15,16 +15,16 @@

Important: This login form is for demonstration purposes only. In production systems you should be using a real Open ID System.

- +

- +

- +