Skip to content

Commit 796d2bf

Browse files
authoredSep 6, 2023
feat: use cypress >= 10 examples only and remove cypress 9 examples (#690)
1 parent c50e8c0 commit 796d2bf

File tree

345 files changed

+28526
-66701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

345 files changed

+28526
-66701
lines changed
 

‎.circleci/config.yml

+33-71
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ jobs:
2525
executor: cypress/default
2626
steps:
2727
- cypress/install
28-
- run:
29-
name: Install deps for test-apps/old-cypress-config
30-
command: npm ci
31-
working_directory: test-apps/old-cypress-config
32-
- run:
33-
name: Install deps for test-apps/new-cypress-config
34-
command: npm ci
35-
working_directory: test-apps/new-cypress-config
3628
- run: npm run check:markdown
3729
- persist_to_workspace:
3830
paths:
@@ -55,30 +47,26 @@ jobs:
5547
command: nvm use 16.16.0
5648
- run:
5749
name: Install deps for code coverage
58-
command: npm ci
59-
- run:
60-
name: Install deps for test-apps/old-cypress-config
6150
command: npm ci
62-
working_directory: test-apps/old-cypress-config
6351
- cypress/run-tests:
6452
# no-workspace: true
65-
start-command: npm run start:windows --prefix test-apps/old-cypress-config/all-files
53+
start-command: npm run start:windows --prefix test-apps/all-files
6654
# wait-on: 'http://localhost:1234'
67-
cypress-command: npx cypress run --project test-apps/old-cypress-config/all-files
55+
cypress-command: npx cypress run --project test-apps/all-files
6856
# store screenshots and videos
6957
# store_artifacts: true
7058
- run:
7159
# make sure the examples captures 100% of code
7260
name: Verify Code Coverage
7361
command: npm run coverage:verify
74-
working_directory: test-apps/old-cypress-config/all-files
62+
working_directory: test-apps/all-files
7563
- run:
7664
name: Check code coverage files 📈
7765
# we will check the final coverage report
7866
# to make sure it only has files we are interested in
7967
# because there are files covered at 0 in the report
80-
command: npm i -D check-code-coverage && npm run coverage:check-files:windows
81-
working_directory: test-apps/old-cypress-config/all-files
68+
command: npm i -D check-code-coverage && npm run coverage:check-files
69+
working_directory: test-apps/all-files
8270

8371
publish:
8472
description: Publishes the new version of the plugin to NPM
@@ -156,33 +144,20 @@ workflows:
156144
matrix:
157145
parameters:
158146
jobname:
159-
- old-cypress-config/all-files
160-
- old-cypress-config/backend
161-
- old-cypress-config/before-all-visit
162-
- old-cypress-config/before-each-visit
163-
- old-cypress-config/exclude-files
164-
- old-cypress-config/frontend
165-
- old-cypress-config/fullstack
166-
- old-cypress-config/one-spec
167-
- old-cypress-config/same-folder
168-
- old-cypress-config/support-files
169-
- old-cypress-config/ts-example
170-
- old-cypress-config/unit-tests-js
171-
- old-cypress-config/use-webpack
172-
- new-cypress-config/all-files
173-
- new-cypress-config/backend
174-
- new-cypress-config/before-all-visit
175-
- new-cypress-config/before-each-visit
176-
- new-cypress-config/cra-e2e-and-ct
177-
- new-cypress-config/exclude-files
178-
- new-cypress-config/frontend
179-
- new-cypress-config/fullstack
180-
- new-cypress-config/one-spec
181-
- new-cypress-config/same-folder
182-
- new-cypress-config/support-files
183-
- new-cypress-config/ts-example
184-
- new-cypress-config/unit-tests-js
185-
- new-cypress-config/use-webpack
147+
- all-files
148+
- backend
149+
- before-all-visit
150+
- before-each-visit
151+
- cra-e2e-and-ct
152+
- exclude-files
153+
- frontend
154+
- fullstack
155+
- one-spec
156+
- same-folder
157+
- support-files
158+
- ts-example
159+
- unit-tests-js
160+
- use-webpack
186161
- windows_test
187162
- publish:
188163
filters:
@@ -195,31 +170,18 @@ workflows:
195170
requires:
196171
- lint
197172
- test-code-coverage-plugin
198-
- test-old-cypress-config/all-files
199-
- test-old-cypress-config/backend
200-
- test-old-cypress-config/before-all-visit
201-
- test-old-cypress-config/before-each-visit
202-
- test-old-cypress-config/exclude-files
203-
- test-old-cypress-config/frontend
204-
- test-old-cypress-config/fullstack
205-
- test-old-cypress-config/one-spec
206-
- test-old-cypress-config/same-folder
207-
- test-old-cypress-config/support-files
208-
- test-old-cypress-config/ts-example
209-
- test-old-cypress-config/unit-tests-js
210-
- test-old-cypress-config/use-webpack
211-
- test-new-cypress-config/all-files
212-
- test-new-cypress-config/backend
213-
- test-new-cypress-config/before-all-visit
214-
- test-new-cypress-config/before-each-visit
215-
- test-new-cypress-config/cra-e2e-and-ct
216-
- test-new-cypress-config/exclude-files
217-
- test-new-cypress-config/frontend
218-
- test-new-cypress-config/fullstack
219-
- test-new-cypress-config/one-spec
220-
- test-new-cypress-config/same-folder
221-
- test-new-cypress-config/support-files
222-
- test-new-cypress-config/ts-example
223-
- test-new-cypress-config/unit-tests-js
224-
- test-new-cypress-config/use-webpack
173+
- test-all-files
174+
- test-backend
175+
- test-before-all-visit
176+
- test-before-each-visit
177+
- test-cra-e2e-and-ct
178+
- test-exclude-files
179+
- test-frontend
180+
- test-fullstack
181+
- test-one-spec
182+
- test-same-folder
183+
- test-support-files
184+
- test-ts-example
185+
- test-unit-tests-js
186+
- test-use-webpack
225187
- windows_test

‎cypress.config.js

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

0 commit comments

Comments
 (0)