diff --git a/.github/workflows/add_issue_to_triage_board.yml b/.github/workflows/add_issue_to_triage_board.yml index e9e74b93b..2a1e20e96 100644 --- a/.github/workflows/add_issue_to_triage_board.yml +++ b/.github/workflows/add_issue_to_triage_board.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93106f750..4d0c99863 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/.github/workflows/triage_new_comment_workflow.yml b/.github/workflows/triage_new_comment_workflow.yml index 0061e2feb..1e5df1663 100644 --- a/.github/workflows/triage_new_comment_workflow.yml +++ b/.github/workflows/triage_new_comment_workflow.yml @@ -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 diff --git a/backend/helpers.ts b/backend/helpers.ts index 736a2703f..0c3f56672 100644 --- a/backend/helpers.ts +++ b/backend/helpers.ts @@ -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 = {