Skip to content

Commit bd4c9a3

Browse files
authored
upgrade cypress to v10 (#6195)
* upgrade cypress * update host * use github action * specify cypress.config.js * update action * use localhost * disable offline test * clean up
1 parent 0ccafd7 commit bd4c9a3

15 files changed

+32
-157
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,10 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@v3
7676

77-
- name: Use Node.js ${{ matrix.node-version }}
78-
uses: actions/setup-node@v3
77+
- name: Cypress run
78+
uses: cypress-io/github-action@v4
7979
with:
80-
node-version: ${{ matrix.node-version }}
81-
cache: yarn
82-
83-
- run: |
84-
yarn
85-
yarn cypress install
86-
yarn cypress verify
87-
yarn cypress:ci
80+
config-file: cypress.config.js
81+
build: yarn build
82+
start: yarn serve-dist
83+
command: yarn cypress:run

cypress.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { defineConfig } = require('cypress');
2+
3+
module.exports = defineConfig({
4+
video: false,
5+
e2e: {
6+
// We've imported your old cypress plugins here.
7+
// You may want to clean this up later by importing these.
8+
setupNodeEvents(on, config) {
9+
return require('./cypress/plugins/index.js')(on, config);
10+
},
11+
baseUrl: 'http://localhost:4200',
12+
},
13+
});

cypress.json

Lines changed: 0 additions & 4 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)