Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use chrome browser for cypress tests #2904

Merged
merged 33 commits into from May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
3ec655b
use chrome browser for cypress tests
mrrajamanickam-coveo May 16, 2023
861e83b
update to v5 of cypress gh action
mrrajamanickam-coveo May 16, 2023
6965ad1
remove dup browser config
mrrajamanickam-coveo May 16, 2023
c886c89
Workaround hardcoded node.js version in cypress
mrrajamanickam-coveo May 17, 2023
ef24a81
update cypress from 9 to 10 in couple of pkgs
mrrajamanickam-coveo May 17, 2023
4dbaf05
migrate vuejs samples pkg to cypress 10 config
mrrajamanickam-coveo May 17, 2023
60ea7ca
migrate stencil samples pkg to cypress 10 config
mrrajamanickam-coveo May 17, 2023
1faca64
migrate hosted page pkg to cypress 10 config
mrrajamanickam-coveo May 17, 2023
45073a9
migrate headless react pkg to cypress 10 config
mrrajamanickam-coveo May 17, 2023
586d349
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 17, 2023
ffd0d3a
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 17, 2023
44468b3
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 17, 2023
4802c79
add retry to cypress github action
mrrajamanickam-coveo May 17, 2023
1f84413
add recommended vscode extensions: yaml support, spell checker
mrrajamanickam-coveo May 17, 2023
308eaad
fix Error: System.ArgumentException: Unexpected type 'MappingToken' e…
mrrajamanickam-coveo May 17, 2023
4ed0bf7
Revert "fix Error: System.ArgumentException: Unexpected type 'Mapping…
mrrajamanickam-coveo May 17, 2023
4ba98fd
Revert "add retry to cypress github action"
mrrajamanickam-coveo May 17, 2023
7915c15
add npm config to save exact
mrrajamanickam-coveo May 17, 2023
04a2990
add pkg to retry cli cmds
mrrajamanickam-coveo May 17, 2023
4675f75
add retry for cypress runs in ci
mrrajamanickam-coveo May 17, 2023
b544452
regen pkg lock
mrrajamanickam-coveo May 17, 2023
dc6bb7c
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 18, 2023
97bbeaa
Merge branch 'KIT-2481_retry_cypress_tests' into KIT-2478_chrome_brow…
mrrajamanickam-coveo May 18, 2023
2a061af
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 18, 2023
33136bd
stabilize facet and result-link tests with before each
mrrajamanickam-coveo May 18, 2023
e1fa95e
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 18, 2023
6b0e1d1
stabilize more facet tests
mrrajamanickam-coveo May 19, 2023
0c6a2ac
refactor before each to remove redundancy for category facet tests
mrrajamanickam-coveo May 19, 2023
ba22bfd
cleanup before each setup for color facet tests
mrrajamanickam-coveo May 19, 2023
c711d43
some more before each cleanup
mrrajamanickam-coveo May 19, 2023
e623d0a
selectively undo some facet refactor
mrrajamanickam-coveo May 20, 2023
178bc94
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 20, 2023
56f9330
Merge branch 'master' into KIT-2478_chrome_browser_cypress
mrrajamanickam-coveo May 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/actions/e2e-atomic-angular/action.yml
Expand Up @@ -12,9 +12,11 @@ runs:
npm i
shell: bash
working-directory: ./packages/samples/angular
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/angular
start: npm run dev
wait-on: 'http://localhost:4200'
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/e2e-atomic-hosted-page/action.yml
Expand Up @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/atomic-hosted-page
start: npm run dev
wait-on: 'http://localhost:3335'
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/e2e-atomic-insight-panel/action.yml
Expand Up @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/atomic
config-file: cypress-insight-panel.config.ts
start: npm run prod
Expand Down
5 changes: 3 additions & 2 deletions .github/actions/e2e-atomic-next/action.yml
Expand Up @@ -8,15 +8,16 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/atomic-next
start: npm run dev
wait-on: 'http://localhost:3000'
install: false
record: false
browser: chrome

- uses: actions/upload-artifact@v3
if: failure()
Expand Down
10 changes: 6 additions & 4 deletions .github/actions/e2e-atomic-react/action.yml
@@ -1,5 +1,5 @@
name: "Atomic React E2E tests"
description: "Runs Cypress tests for Atomic React"
name: 'Atomic React E2E tests'
description: 'Runs Cypress tests for Atomic React'
inputs:
github-token:
description: The GitHub token for accurately detecting a build vs a re-run build
Expand All @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/atomic-react
start: npm run dev
wait-on: 'http://localhost:3000'
Expand All @@ -20,4 +22,4 @@ runs:
if: failure()
with:
name: cypress-screenshots
path: packages/samples/atomic-react/cypress/screenshots
path: packages/samples/atomic-react/cypress/screenshots
4 changes: 3 additions & 1 deletion .github/actions/e2e-atomic-screenshots/action.yml
Expand Up @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/atomic
config-file: cypress-screenshots.config.ts
start: npm run prod
Expand Down
10 changes: 6 additions & 4 deletions .github/actions/e2e-atomic/action.yml
@@ -1,5 +1,5 @@
name: "Atomic E2E tests"
description: "Runs Cypress tests for Atomic"
name: 'Atomic E2E tests'
description: 'Runs Cypress tests for Atomic'
inputs:
github-token:
description: The GitHub token for accurately detecting a build vs a re-run build
Expand All @@ -11,9 +11,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/atomic
spec: ${{ inputs.spec }}
start: npm run prod
Expand All @@ -26,4 +28,4 @@ runs:
if: failure()
with:
name: cypress-screenshots
path: packages/atomic/cypress/screenshots
path: packages/atomic/cypress/screenshots
5 changes: 3 additions & 2 deletions .github/actions/e2e-iife/action.yml
Expand Up @@ -8,15 +8,16 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/iife
start: npm run prod
wait-on: 'http://localhost:3000'
install: false
record: false
browser: chrome

- uses: actions/upload-artifact@v3
if: failure()
Expand Down
10 changes: 6 additions & 4 deletions .github/actions/e2e-quantic/action.yml
@@ -1,5 +1,5 @@
name: "Quantic E2E tests"
description: "Runs Cypress tests for Quantic"
name: 'Quantic E2E tests'
description: 'Runs Cypress tests for Quantic'
inputs:
github-token:
description: The GitHub token for accurately detecting a build vs a re-run build
Expand All @@ -15,9 +15,11 @@ runs:
with:
path: packages/quantic/cypress/plugins/config
key: quantic-cypress-config-${{ github.sha }}
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/quantic
spec: ${{ inputs.spec }}
install: false
Expand All @@ -29,4 +31,4 @@ runs:
if: failure()
with:
name: cypress-screenshots
path: packages/quantic/cypress/screenshots
path: packages/quantic/cypress/screenshots
4 changes: 3 additions & 1 deletion .github/actions/e2e-stencil/action.yml
Expand Up @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/stencil
start: npm run dev
wait-on: 'http://localhost:3666'
Expand Down
4 changes: 3 additions & 1 deletion .github/actions/e2e-vuejs/action.yml
Expand Up @@ -8,9 +8,11 @@ inputs:
runs:
using: composite
steps:
- uses: cypress-io/github-action@v4
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx retry --retries=3 --'
working-directory: ./packages/samples/vuejs
start: npm run dev
wait-on: 'http://localhost:8080'
Expand Down
1 change: 1 addition & 0 deletions .npmrc
@@ -1,2 +1,3 @@
engine-strict=true
save-exact=true
lockfile-version=3
9 changes: 8 additions & 1 deletion .vscode/extensions.json
@@ -1 +1,8 @@
{"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]}
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"redhat.vscode-yaml",
"streetsidesoftware.code-spell-checker"
]
}
34 changes: 31 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -69,6 +69,7 @@
"prettier": "2.7.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"retry-cli": "0.7.0",
"rimraf": "3.0.2",
"semver": "7.3.8",
"ts-jest": "27.1.5",
Expand Down
28 changes: 28 additions & 0 deletions packages/atomic-hosted-page/cypress.config.ts
@@ -0,0 +1,28 @@
// eslint-disable-next-line node/no-unpublished-import
import {defineConfig} from 'cypress';

export default defineConfig({
reporter: 'spec',
viewportHeight: 2000,
viewportWidth: 2000,
retries: {
runMode: 3,
openMode: 1,
},
reporterOptions: {
toConsole: true,
},
chromeWebSecurity: false,
video: false,
requestTimeout: 10000,
watchForFileChanges: true,
e2e: {
// We've imported your old cypress plugins here.
// You may want to clean this up later by importing these.
setupNodeEvents(on, config) {
return require('./cypress/plugins/index.js')(on, config);
},
baseUrl: 'http://localhost:3335',
specPattern: 'cypress/e2e/**/*.cypress.ts',
},
});
20 changes: 0 additions & 20 deletions packages/atomic-hosted-page/cypress.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/atomic-hosted-page/package.json
Expand Up @@ -39,6 +39,6 @@
"@stencil/core": "2.17.3"
},
"devDependencies": {
"cypress": "9.7.0"
"cypress": "10.8.0"
}
}