Skip to content

Commit

Permalink
fix cypress config to support e2e_smoke spec patttern
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelangarano committed Sep 15, 2023
1 parent e024cbf commit 5317b24
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/e2e-cypress-12-ccy-1.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
- name: Run compatibility tests
working-directory: ./e2e/cypress-12-demo
env:
CURRENTS_API_KEY: YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9
CURRENTS_RUN_BASE_URL: https://api.currents.dev/v1/runs/
CURRENTS_PROJECT_ID: 2cI1I5
CURRENTS_RECORD_KEY: YakSabgBLb7D40nZ
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }}
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }}
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}

run: >
npm run test
8 changes: 4 additions & 4 deletions .github/workflows/e2e-cypress-13-ccy-1.10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
- name: Run compatibility tests
working-directory: ./e2e/cypress-13-demo
env:
CURRENTS_API_KEY: YpYIAerb1rWuOFrvf7ciK8Za8koKgrtRfoDPboQUOjScnBv91m4qAXSDb8Rb57m9
CURRENTS_RUN_BASE_URL: https://api.currents.dev/v1/runs/
CURRENTS_PROJECT_ID: 2cI1I5
CURRENTS_RECORD_KEY: YakSabgBLb7D40nZ
CURRENTS_API_KEY: ${{ secrets.CURRENTS_API_KEY }}
CURRENTS_RUN_BASE_URL: ${{ secrets.CURRENTS_RUN_BASE_URL }}
CURRENTS_PROJECT_ID: ${{ secrets.CURRENTS_PROJECT_ID }}
CURRENTS_RECORD_KEY: ${{ secrets.CURRENTS_RECORD_KEY }}

run: >
npm run test
48 changes: 24 additions & 24 deletions examples/webapp/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@ import { defineConfig } from "cypress";
import currents from "cypress-cloud/plugin";

module.exports = defineConfig({
video: true,
e2e: {
projectId: !!(process.env.GITHUB_ACTION || process.env.CIRCLE_BRANCH)
? "Ij0RfK"
: "l4zuz8",
baseUrl: "https://todomvc.com/examples/vanillajs",
supportFile: "cypress/support/e2e.ts",
specPattern: "cypress/e2e/*.js",
setupNodeEvents(on, config) {
require("@cypress/grep/src/plugin")(config);
require("cypress-terminal-report/src/installLogsPrinter")(on);
return currents(on, config);
},
},
video: true,
e2e: {
projectId: !!(process.env.GITHUB_ACTION || process.env.CIRCLE_BRANCH)
? "Ij0RfK"
: "l4zuz8",
baseUrl: "https://todomvc.com/examples/vanillajs",
supportFile: "cypress/support/e2e.ts",
specPattern: ["cypress/e2e/*.js", "cypress/e2e_smoke/*.js"],
setupNodeEvents(on, config) {
require("@cypress/grep/src/plugin")(config);
require("cypress-terminal-report/src/installLogsPrinter")(on);
return currents(on, config);
},
},

component: {
specPattern: ["pages/__tests__/*.spec.tsx"],
setupNodeEvents(on, config) {
return currents(on, config);
},
devServer: {
framework: "next",
bundler: "webpack",
},
},
component: {
specPattern: ["pages/__tests__/*.spec.tsx"],
setupNodeEvents(on, config) {
return currents(on, config);
},
devServer: {
framework: "next",
bundler: "webpack",
},
},
});

0 comments on commit 5317b24

Please sign in to comment.