From 35766c10973971e90ee4cbc5e8d247ab530d33df Mon Sep 17 00:00:00 2001 From: Andrew Goldis Date: Tue, 19 Sep 2023 14:47:02 -0700 Subject: [PATCH] chore: .. --- .github/workflows/e2e-cypress-compatibility.yml | 2 +- e2e/cypress-13-demo/README.md | 1 + e2e/cypress-13-demo/__tests__/run.test.ts | 6 ++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/e2e-cypress-compatibility.yml b/.github/workflows/e2e-cypress-compatibility.yml index 1e2fedb..8a1ddf2 100644 --- a/.github/workflows/e2e-cypress-compatibility.yml +++ b/.github/workflows/e2e-cypress-compatibility.yml @@ -35,7 +35,7 @@ jobs: CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }} CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }} CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }} - CYPRESS_VERSION: ${{ matrix.cypress-version }} + CURRENTS_USE_CYPRESS_VERSION: ${{ matrix.cypress-version }} run: > npx jest diff --git a/e2e/cypress-13-demo/README.md b/e2e/cypress-13-demo/README.md index 726c419..834d484 100644 --- a/e2e/cypress-13-demo/README.md +++ b/e2e/cypress-13-demo/README.md @@ -5,5 +5,6 @@ CURRENTS_API_BASE_URL=https://api.currents.dev/v1 \ CURRENTS_API_KEY= \ CURRENTS_RECORD_KEY= \ CURRENTS_PROJECT_ID= \ +CURRENTS_USE_CYPRESS_VERSION=<12|13...> \ npx jest --watch ``` diff --git a/e2e/cypress-13-demo/__tests__/run.test.ts b/e2e/cypress-13-demo/__tests__/run.test.ts index aca4af5..6d15a11 100644 --- a/e2e/cypress-13-demo/__tests__/run.test.ts +++ b/e2e/cypress-13-demo/__tests__/run.test.ts @@ -12,8 +12,10 @@ const testSpecs = [ ]; let result: any = null; -// eslint-disable-next-line -describe(`Cypress ${process.env.CYPRESS_VERSION} compatibility`, () => { +describe(`Cypress ${ + // eslint-disable-next-line + process.env.CURRENTS_USE_CYPRESS_VERSION ?? 13 +} compatibility`, () => { jest.setTimeout(60 * 1000 * 5); beforeAll(async () => {