Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get latest Cypress tests passing #107

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/add_issue_to_triage_board.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: 'Add issue/PR to Triage Board'
on:
issues:
types:
- opened
pull_request_target:
types:
- opened
jobs:
add-to-triage-project-board:
uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
secrets: inherit
# name: 'Add issue/PR to Triage Board'
# on:
# issues:
# types:
# - opened
# pull_request_target:
# types:
# - opened
# jobs:
# add-to-triage-project-board:
# uses: cypress-io/cypress/.github/workflows/triage_add_to_project.yml@develop
# secrets: inherit
282 changes: 141 additions & 141 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,152 +75,152 @@ jobs:
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
record: true
parallel: true
group: "UI - Chrome"
#record: true
# parallel: true
# group: "UI - Chrome"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: "cypress:server:args"

ui-chrome-mobile-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Chrome - Mobile"
uses: cypress-io/github-action@v6
with:
config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: chrome
record: true
parallel: true
group: "UI - Chrome - Mobile"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ui-firefox-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Firefox"
uses: cypress-io/github-action@v6
with:
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: firefox
record: true
parallel: true
group: "UI - Firefox"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

ui-firefox-mobile-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
options: --user 1001
needs: install
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving Cypress Cloud hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download the build folders
uses: actions/download-artifact@v4
with:
name: build
path: build

- name: "UI Tests - Firefox - Mobile"
uses: cypress-io/github-action@v6
with:
config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
start: yarn start:ci
wait-on: "http://localhost:3000"
wait-on-timeout: 120
browser: firefox
record: true
parallel: true
group: "UI - Firefox - Mobile"
spec: cypress/tests/ui/*
config-file: cypress.config.ts
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# ui-chrome-mobile-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Chrome - Mobile"
# uses: cypress-io/github-action@v6
# with:
# config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: chrome
# record: true
# parallel: true
# group: "UI - Chrome - Mobile"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# ui-firefox-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Firefox"
# uses: cypress-io/github-action@v6
# with:
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: firefox
# record: true
# parallel: true
# group: "UI - Firefox"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# ui-firefox-mobile-tests:
# timeout-minutes: 15
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node-20.12.0-chrome-123.0.6312.86-1-ff-124.0.2-edge-123.0.2420.65-1
# options: --user 1001
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving Cypress Cloud hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1, 2, 3, 4, 5]
# steps:
# - name: Checkout
# uses: actions/checkout@v4

# - name: Download the build folders
# uses: actions/download-artifact@v4
# with:
# name: build
# path: build

# - name: "UI Tests - Firefox - Mobile"
# uses: cypress-io/github-action@v6
# with:
# config: '{"e2e":{"viewportWidth":375,"viewportHeight":667}}'
# start: yarn start:ci
# wait-on: "http://localhost:3000"
# wait-on-timeout: 120
# browser: firefox
# record: true
# parallel: true
# group: "UI - Firefox - Mobile"
# spec: cypress/tests/ui/*
# config-file: cypress.config.ts
# env:
# CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# # Recommended: pass the GitHub token lets this action correctly
# # determine the unique run id necessary to re-run the checks
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18 changes: 9 additions & 9 deletions .github/workflows/triage_new_comment_workflow.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: 'Handle Comment Workflow'
on:
issue_comment:
types:
- created
jobs:
closed-issue-comment:
uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
secrets: inherit
# name: 'Handle Comment Workflow'
# on:
# issue_comment:
# types:
# - created
# jobs:
# closed-issue-comment:
# uses: cypress-io/cypress/.github/workflows/triage_handle_new_comments.yml@develop
# secrets: inherit
1 change: 1 addition & 0 deletions backend/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const verifyOktaToken = (req: Request, res: Response, next: NextFunction)

// Amazon Cognito Validate the JWT Signature
// https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-using-tokens-verifying-a-jwt.html#amazon-cognito-user-pools-using-tokens-step-2
// @ts-ignore
const userPoolId = awsConfig.Auth.Cognito.userPoolId;
const region = userPoolId.split("_")[0];
const awsCognitoJwtConfig = {
Expand Down