Skip to content

Commit 9b6a147

Browse files
committed
Update cypress
1 parent dd7e470 commit 9b6a147

9 files changed

Lines changed: 409 additions & 1920 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v2
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
1318

1419
- name: Build jazkarta.shop docker image
1520
run: docker build . -t jazkarta.shop
@@ -25,17 +30,9 @@ jobs:
2530
run: curl --fail -v http://localhost:8080/Plone/review-cart
2631

2732
- name: 'UI Tests - Chrome'
28-
uses: cypress-io/github-action@v2
33+
uses: cypress-io/github-action@v6
2934
with:
3035
browser: chrome
31-
record: true
32-
parallel: true
33-
group: 'UI - Chrome'
34-
env:
35-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
36-
# Recommended: pass the GitHub token lets this action correctly
37-
# determine the unique run id necessary to re-run the checks
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3936

4037
- name: Print plone server logs
4138
if: always() # This step should be also run when a previous step failed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
bin/
88
develop-eggs/
99
parts/
10+
node_modules/
11+
build/
12+
dist/

cypress.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const { defineConfig } = require('cypress')
2+
3+
module.exports = defineConfig({
4+
projectId: '5awy1r',
5+
e2e: {
6+
baseUrl: 'http://localhost:8080/Plone',
7+
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
8+
supportFile: 'cypress/support/e2e.js',
9+
},
10+
env: {
11+
SITE_OWNER_NAME: 'admin',
12+
SITE_OWNER_PASSWORD: 'admin',
13+
},
14+
})

cypress.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

cypress/plugins/index.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)