From 532efad626851d77e3688d83db8696b11bab9922 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 07:39:39 +0000 Subject: [PATCH 01/20] Bump @auth0/auth0-spa-js from 2.1.3 to 2.2.0 Bumps [@auth0/auth0-spa-js](https://github.com/auth0/auth0-spa-js) from 2.1.3 to 2.2.0. - [Release notes](https://github.com/auth0/auth0-spa-js/releases) - [Changelog](https://github.com/auth0/auth0-spa-js/blob/main/CHANGELOG.md) - [Commits](https://github.com/auth0/auth0-spa-js/compare/v2.1.3...v2.2.0) --- updated-dependencies: - dependency-name: "@auth0/auth0-spa-js" dependency-version: 2.2.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- package-lock.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index f8ad46fa..98166bd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -74,7 +74,9 @@ } }, "node_modules/@auth0/auth0-spa-js": { - "version": "2.1.3", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@auth0/auth0-spa-js/-/auth0-spa-js-2.2.0.tgz", + "integrity": "sha512-YaHHCxiSQxDb+Ju9gXOqcqgXWq8EkUSpZC4g24D3MoEBUaADKwOosrAnmjDZcslBZpnSFFdrl4dLYedAer3xlQ==", "license": "MIT" }, "node_modules/@babel/code-frame": { From 780e0279b3d1c8b4d9c3e33402d5f8131807e960 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 09:28:14 +0530 Subject: [PATCH 02/20] fix: update selectors in login function for Auth0 input fields --- cypress/e2e/smoke.cy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index de867074..449a53c8 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -8,9 +8,9 @@ if (!EMAIL || !PASSWORD) { } const loginToAuth0 = (): void => { - cy.get('.auth0-lock-input-username .auth0-lock-input').clear().type(EMAIL); - cy.get('.auth0-lock-input-password .auth0-lock-input').clear().type(PASSWORD); - cy.get('.auth0-lock-submit').click(); + cy.get('#username').clear().type(EMAIL); + cy.get('#password').clear().type(PASSWORD); + cy.get('button[type="submit"][name="action"]').contains(/^continue$/i).click({ force: true }); }; describe('Smoke tests', () => { From c9d628be7736eec0ed70e6565067a331f673f512 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 09:41:16 +0530 Subject: [PATCH 03/20] fix: correct environment variable names for Cypress user credentials --- cypress/e2e/smoke.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index 449a53c8..58d0ac26 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -1,5 +1,5 @@ -const EMAIL = Cypress.env('USER_EMAIL'); -const PASSWORD = Cypress.env('USER_PASSWORD'); +const EMAIL = Cypress.env('CYPRESS_USER_EMAIL'); +const PASSWORD = Cypress.env('CYPRESS_USER_PASSWORD'); if (!EMAIL || !PASSWORD) { throw new Error( From e6657d881dbb6888e1896f631971376f7c2bdd66 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 11:18:19 +0530 Subject: [PATCH 04/20] ci: add debug step and cypress env config for integration tests --- .github/workflows/integration.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1588248f..5f253a78 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -48,6 +48,16 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha || github.ref }} + - name: Debug - Check if secrets are loaded + run: | + echo "Checking if CYPRESS_USER_EMAIL is set..." + if [ -z "$CYPRESS_USER_EMAIL" ]; then + echo "❌ CYPRESS_USER_EMAIL is NOT set or empty" + exit 1 + else + echo "✅ CYPRESS_USER_EMAIL is set (value: ${CYPRESS_USER_EMAIL:0:3}***@***)" + fi + - name: Install dependencies run: npm ci From e9df08f0c443222fcb6d6b6c545bd2fcd176b227 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 11:32:02 +0530 Subject: [PATCH 05/20] chore: add Cypress validation to integration workflow --- .github/workflows/integration.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5f253a78..dd499e1a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -58,6 +58,15 @@ jobs: echo "✅ CYPRESS_USER_EMAIL is set (value: ${CYPRESS_USER_EMAIL:0:3}***@***)" fi + echo "Checking if CYPRESS_USER_PASSWORD is set..." + if [ -z "$CYPRESS_USER_PASSWORD" ]; then + echo "❌ CYPRESS_USER_PASSWORD is NOT set or empty" + exit 1 + else + echo "✅ CYPRESS_USER_PASSWORD is set (length: ${#CYPRESS_USER_PASSWORD} characters)" + echo "✅ CYPRESS_USER_PASSWORD is set (value: ${CYPRESS_USER_PASSWORD:0:3}***@***)" + fi + - name: Install dependencies run: npm ci From bd249f0538b53914029d968cd602b38cb0b8982c Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 11:35:55 +0530 Subject: [PATCH 06/20] chore: remove logic from cypress environment config file --- .github/workflows/integration.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index dd499e1a..159c6636 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -64,7 +64,6 @@ jobs: exit 1 else echo "✅ CYPRESS_USER_PASSWORD is set (length: ${#CYPRESS_USER_PASSWORD} characters)" - echo "✅ CYPRESS_USER_PASSWORD is set (value: ${CYPRESS_USER_PASSWORD:0:3}***@***)" fi - name: Install dependencies From 1e53581ce3a7b397c820239b68699b6578f591e3 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 10 Jul 2025 11:40:40 +0530 Subject: [PATCH 07/20] chore: add Cypress test credentials for CRA integration tests --- .github/workflows/integration.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 159c6636..2035e1b7 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -76,7 +76,10 @@ jobs: run: npm run install:examples - name: Run integration test (CRA) - run: npm run test:cra + run: | + CYPRESS_USER_EMAIL="${{secrets.CYPRESS_USER_EMAIL}}" \ + CYPRESS_USER_PASSWORD="${{secrets.CYPRESS_USER_PASSWORD}}" \ + npm run test:cra - name: Run integration test (NextJS) run: npm run test:nextjs From 3b18a404f290a99b7cbee82f7eebd70c8400e3df Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Thu, 10 Jul 2025 14:51:54 +0530 Subject: [PATCH 08/20] fix: update variable names for Cypress user credentials in integration tests --- .github/workflows/integration.yml | 1 + cypress/e2e/smoke.cy.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 2035e1b7..82c37118 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -27,6 +27,7 @@ jobs: runs-on: ubuntu-latest env: + TERM: xterm SKIP_PREFLIGHT_CHECK: true CYPRESS_USER_EMAIL: ${{secrets.CYPRESS_USER_EMAIL}} CYPRESS_USER_PASSWORD: ${{secrets.CYPRESS_USER_PASSWORD}} diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index 58d0ac26..61561ce3 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -1,15 +1,15 @@ -const EMAIL = Cypress.env('CYPRESS_USER_EMAIL'); -const PASSWORD = Cypress.env('CYPRESS_USER_PASSWORD'); +const SMOKE_TEST_EMAIL = Cypress.env('CYPRESS_USER_EMAIL'); +const USER_PASSWORD = Cypress.env('CYPRESS_USER_PASSWORD'); -if (!EMAIL || !PASSWORD) { +if (!SMOKE_TEST_EMAIL || !USER_PASSWORD) { throw new Error( 'You must provide CYPRESS_USER_EMAIL and CYPRESS_USER_PASSWORD environment variables' ); } const loginToAuth0 = (): void => { - cy.get('#username').clear().type(EMAIL); - cy.get('#password').clear().type(PASSWORD); + cy.get('#username').clear().type(SMOKE_TEST_EMAIL); + cy.get('#password').clear().type(USER_PASSWORD); cy.get('button[type="submit"][name="action"]').contains(/^continue$/i).click({ force: true }); }; @@ -21,7 +21,7 @@ describe('Smoke tests', () => { loginToAuth0(); - cy.get('#hello').contains(`Hello, ${EMAIL}!`); + cy.get('#hello').contains(`Hello, ${SMOKE_TEST_EMAIL}!`); cy.get('#logout').click(); cy.get('#login').should('exist'); }); From bc1745c37a4d60883f3ccb7bab9047fa1fb9a812 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Thu, 10 Jul 2025 17:54:13 +0530 Subject: [PATCH 09/20] Upload artifacts --- .github/workflows/integration.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 82c37118..5aec3f13 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -46,8 +46,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Debug - Check if secrets are loaded run: | @@ -81,6 +79,16 @@ jobs: CYPRESS_USER_EMAIL="${{secrets.CYPRESS_USER_EMAIL}}" \ CYPRESS_USER_PASSWORD="${{secrets.CYPRESS_USER_PASSWORD}}" \ npm run test:cra + continue-on-error: true + + - name: Upload CRA test artifacts + uses: actions/upload-artifact@v4 + if: always() + with: + name: cra-test-results + path: | + cypress/screenshots/ + retention-days: 30 - name: Run integration test (NextJS) run: npm run test:nextjs From e778cafce8209fca6b7f415b090c0b13b29ed4ec Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Thu, 10 Jul 2025 17:58:28 +0530 Subject: [PATCH 10/20] fix --- cypress/e2e/smoke.cy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index 61561ce3..71867bf7 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -1,5 +1,5 @@ -const SMOKE_TEST_EMAIL = Cypress.env('CYPRESS_USER_EMAIL'); -const USER_PASSWORD = Cypress.env('CYPRESS_USER_PASSWORD'); +const SMOKE_TEST_EMAIL = Cypress.env('USER_EMAIL'); +const USER_PASSWORD = Cypress.env('USER_PASSWORD'); if (!SMOKE_TEST_EMAIL || !USER_PASSWORD) { throw new Error( From 2209ed7cc6a40940ec76f75066ba598065a81cf1 Mon Sep 17 00:00:00 2001 From: Kunal Dawar Date: Thu, 10 Jul 2025 18:03:58 +0530 Subject: [PATCH 11/20] remove extra pipeline code --- .github/workflows/integration.yml | 34 +------------------------------ 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 5aec3f13..51517654 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -27,7 +27,6 @@ jobs: runs-on: ubuntu-latest env: - TERM: xterm SKIP_PREFLIGHT_CHECK: true CYPRESS_USER_EMAIL: ${{secrets.CYPRESS_USER_EMAIL}} CYPRESS_USER_PASSWORD: ${{secrets.CYPRESS_USER_PASSWORD}} @@ -47,24 +46,6 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Debug - Check if secrets are loaded - run: | - echo "Checking if CYPRESS_USER_EMAIL is set..." - if [ -z "$CYPRESS_USER_EMAIL" ]; then - echo "❌ CYPRESS_USER_EMAIL is NOT set or empty" - exit 1 - else - echo "✅ CYPRESS_USER_EMAIL is set (value: ${CYPRESS_USER_EMAIL:0:3}***@***)" - fi - - echo "Checking if CYPRESS_USER_PASSWORD is set..." - if [ -z "$CYPRESS_USER_PASSWORD" ]; then - echo "❌ CYPRESS_USER_PASSWORD is NOT set or empty" - exit 1 - else - echo "✅ CYPRESS_USER_PASSWORD is set (length: ${#CYPRESS_USER_PASSWORD} characters)" - fi - - name: Install dependencies run: npm ci @@ -75,20 +56,7 @@ jobs: run: npm run install:examples - name: Run integration test (CRA) - run: | - CYPRESS_USER_EMAIL="${{secrets.CYPRESS_USER_EMAIL}}" \ - CYPRESS_USER_PASSWORD="${{secrets.CYPRESS_USER_PASSWORD}}" \ - npm run test:cra - continue-on-error: true - - - name: Upload CRA test artifacts - uses: actions/upload-artifact@v4 - if: always() - with: - name: cra-test-results - path: | - cypress/screenshots/ - retention-days: 30 + run: npm run test:cra - name: Run integration test (NextJS) run: npm run test:nextjs From 2c8addc985316b5e27255c77dd2f178d9fba83fc Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Fri, 11 Jul 2025 10:12:09 +0530 Subject: [PATCH 12/20] fix: standardize variable names for user credentials in smoke tests --- cypress/e2e/smoke.cy.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/e2e/smoke.cy.ts b/cypress/e2e/smoke.cy.ts index 71867bf7..449a53c8 100644 --- a/cypress/e2e/smoke.cy.ts +++ b/cypress/e2e/smoke.cy.ts @@ -1,15 +1,15 @@ -const SMOKE_TEST_EMAIL = Cypress.env('USER_EMAIL'); -const USER_PASSWORD = Cypress.env('USER_PASSWORD'); +const EMAIL = Cypress.env('USER_EMAIL'); +const PASSWORD = Cypress.env('USER_PASSWORD'); -if (!SMOKE_TEST_EMAIL || !USER_PASSWORD) { +if (!EMAIL || !PASSWORD) { throw new Error( 'You must provide CYPRESS_USER_EMAIL and CYPRESS_USER_PASSWORD environment variables' ); } const loginToAuth0 = (): void => { - cy.get('#username').clear().type(SMOKE_TEST_EMAIL); - cy.get('#password').clear().type(USER_PASSWORD); + cy.get('#username').clear().type(EMAIL); + cy.get('#password').clear().type(PASSWORD); cy.get('button[type="submit"][name="action"]').contains(/^continue$/i).click({ force: true }); }; @@ -21,7 +21,7 @@ describe('Smoke tests', () => { loginToAuth0(); - cy.get('#hello').contains(`Hello, ${SMOKE_TEST_EMAIL}!`); + cy.get('#hello').contains(`Hello, ${EMAIL}!`); cy.get('#logout').click(); cy.get('#login').should('exist'); }); From 9e1abdb5d16fb244940142eb7f849fb03dc2020b Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Fri, 11 Jul 2025 10:27:26 +0530 Subject: [PATCH 13/20] fix: add ref specification for checkout step in integration workflow --- .github/workflows/integration.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 51517654..1588248f 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -45,6 +45,8 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Install dependencies run: npm ci From 1845b43d5ff6c13ed7d302e7dd208a6307962822 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Mon, 14 Jul 2025 21:45:20 +0530 Subject: [PATCH 14/20] fix: comment out NextJS and Gatsby integration tests due to dependency issues --- .github/workflows/integration.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 1588248f..e1f08e86 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -60,8 +60,9 @@ jobs: - name: Run integration test (CRA) run: npm run test:cra - - name: Run integration test (NextJS) - run: npm run test:nextjs + # - name: Run integration test (NextJS) + # run: npm run test:nextjs - - name: Run integration test (Gatsby) - run: npm run test:gatsby + # - name: Run integration test (Gatsby) + # run: npm run test:gatsby + # Skipped NextJS and Gatsby integration tests due to dependency issues From f3a6d683ed8ce600b09e37046201b0522b9af1c2 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Mon, 14 Jul 2025 22:25:34 +0530 Subject: [PATCH 15/20] chore: enable NextJS integration tests --- .github/workflows/integration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index e1f08e86..602b40c6 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -60,8 +60,8 @@ jobs: - name: Run integration test (CRA) run: npm run test:cra - # - name: Run integration test (NextJS) - # run: npm run test:nextjs + - name: Run integration test (NextJS) + run: npm run test:nextjs # - name: Run integration test (Gatsby) # run: npm run test:gatsby From 9c3eca920b625c9bd6c454a3d918ebf990b6f2f8 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Mon, 14 Jul 2025 23:14:40 +0530 Subject: [PATCH 16/20] chore: update nextjs test command and add cypress env config for test credentials --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e9f0f6e5..74cebb9d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "test:cra:watch": "start-server-and-test start:api 3001 start:cra 3000 cypress:open", "test:gatsby": "start-server-and-test start:api 3001 start:gatsby http-get://localhost:3000 cypress:run", "test:gatsby:watch": "start-server-and-test start:api 3001 start:gatsby 3000 cypress:open", - "test:nextjs": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:run", + "test:nextjs": "start-server-and-test start:api 3001 start:nextjs http-get://127.0.0.1:3000 cypress:run", "test:nextjs:watch": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:open", "test:integration": "npm run test:cra && npm run test:gatsby && npm run test:nextjs", "cypress:run": "cypress run --spec 'cypress/e2e/smoke.cy.ts'", From 116527f71fd185773dcab556c66ccbf6d36fe88b Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Mon, 14 Jul 2025 23:43:32 +0530 Subject: [PATCH 17/20] chore: add cypress debug logging for test runs --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 74cebb9d..b75cd082 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "test:nextjs": "start-server-and-test start:api 3001 start:nextjs http-get://127.0.0.1:3000 cypress:run", "test:nextjs:watch": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:open", "test:integration": "npm run test:cra && npm run test:gatsby && npm run test:nextjs", - "cypress:run": "cypress run --spec 'cypress/e2e/smoke.cy.ts'", + "cypress:run": "DEBUG=cypress:* cypress run --spec 'cypress/e2e/smoke.cy.ts'", "cypress:open": "cypress open" }, "repository": { From e307d92b3af7b1c23d68a26ee9b663310ad2c6ec Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Tue, 15 Jul 2025 00:10:15 +0530 Subject: [PATCH 18/20] chore: update cypress config with test user credentials and debug settings --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b75cd082..cbc77942 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "test:nextjs": "start-server-and-test start:api 3001 start:nextjs http-get://127.0.0.1:3000 cypress:run", "test:nextjs:watch": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:open", "test:integration": "npm run test:cra && npm run test:gatsby && npm run test:nextjs", - "cypress:run": "DEBUG=cypress:* cypress run --spec 'cypress/e2e/smoke.cy.ts'", + "cypress:run": "DEBUG=cypress:net-stubbing:server:intercept-response cypress run --spec 'cypress/e2e/smoke.cy.ts'", "cypress:open": "cypress open" }, "repository": { From d10acc39a05684669976b48c110ad68ed425a662 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 17 Jul 2025 14:54:59 +0530 Subject: [PATCH 19/20] chore: restore Gatsby integration test in CI workflow and fix NextJS test command --- .github/workflows/integration.yml | 5 ++--- package.json | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 602b40c6..1588248f 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -63,6 +63,5 @@ jobs: - name: Run integration test (NextJS) run: npm run test:nextjs - # - name: Run integration test (Gatsby) - # run: npm run test:gatsby - # Skipped NextJS and Gatsby integration tests due to dependency issues + - name: Run integration test (Gatsby) + run: npm run test:gatsby diff --git a/package.json b/package.json index cbc77942..e9f0f6e5 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,10 @@ "test:cra:watch": "start-server-and-test start:api 3001 start:cra 3000 cypress:open", "test:gatsby": "start-server-and-test start:api 3001 start:gatsby http-get://localhost:3000 cypress:run", "test:gatsby:watch": "start-server-and-test start:api 3001 start:gatsby 3000 cypress:open", - "test:nextjs": "start-server-and-test start:api 3001 start:nextjs http-get://127.0.0.1:3000 cypress:run", + "test:nextjs": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:run", "test:nextjs:watch": "start-server-and-test start:api 3001 start:nextjs 3000 cypress:open", "test:integration": "npm run test:cra && npm run test:gatsby && npm run test:nextjs", - "cypress:run": "DEBUG=cypress:net-stubbing:server:intercept-response cypress run --spec 'cypress/e2e/smoke.cy.ts'", + "cypress:run": "cypress run --spec 'cypress/e2e/smoke.cy.ts'", "cypress:open": "cypress open" }, "repository": { From 47caa32e4530b87ac167eb4aac427f8b29060df9 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Thu, 17 Jul 2025 15:00:22 +0530 Subject: [PATCH 20/20] test: update logout test to use async act --- __tests__/auth-provider.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/auth-provider.test.tsx b/__tests__/auth-provider.test.tsx index 0ec66d3c..ee506f8b 100644 --- a/__tests__/auth-provider.test.tsx +++ b/__tests__/auth-provider.test.tsx @@ -423,7 +423,7 @@ describe('Auth0Provider', () => { await waitFor(() => { expect(result.current.logout).toBeInstanceOf(Function); }); - act(() => { + await act(() => { result.current.logout(); }); expect(clientMock.logout).toHaveBeenCalled();