mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-13 21:02:08 +08:00
fix(e2e): update workflows and cypress configs (#49947)
* chore: bump cypress to v11 * fix: remove firefox downgrade * fix: remove passing specs in the run-script
This commit is contained in:
parent
d31dd8a9d2
commit
162336365b
14
.github/workflows/e2e-web.yml
vendored
14
.github/workflows/e2e-web.yml
vendored
@ -75,11 +75,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
browsers: [
|
||||
chrome,
|
||||
# firefox,
|
||||
electron
|
||||
]
|
||||
browsers: [chrome, firefox, electron]
|
||||
node-version: [18.x]
|
||||
include:
|
||||
- browsers: electron
|
||||
@ -117,14 +113,6 @@ jobs:
|
||||
tar -xf client-artifact.tar
|
||||
rm client-artifact.tar
|
||||
|
||||
# - name: Downgrade Firefox
|
||||
# run: |
|
||||
# curl https://ftp.mozilla.org/pub/firefox/releases/101.0/linux-x86_64/en-US/firefox-101.0.tar.bz2 --output firefox-101.0.tar.bz2
|
||||
# tar -xjf firefox-101.0.tar.bz2
|
||||
# sudo mv firefox /opt/
|
||||
# sudo mv /usr/bin/firefox /usr/bin/firefox_old
|
||||
# sudo ln -s /opt/firefox/firefox /usr/bin/firefox
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
|
||||
@ -8,7 +8,26 @@ module.exports = defineConfig({
|
||||
projectId: 'ke77ns',
|
||||
retries: 4,
|
||||
chromeWebSecurity: false,
|
||||
specPattern: ['cypress/e2e/**/*.js', 'cypress/e2e/**/*.ts'],
|
||||
|
||||
// This is the default spec pattern, that we use on /learn proper
|
||||
//
|
||||
// For special ones like the third- party or the mobile app specs,
|
||||
// you can use the below command:
|
||||
//
|
||||
// pnpm run cypress:dev:run -- --spec "cypress/e2e/mobile-learn/**/*"
|
||||
// pnpm run cypress:dev:run -- --spec "cypress/e2e/third-party/**/*"
|
||||
//
|
||||
// and so on.
|
||||
//
|
||||
specPattern: ['cypress/e2e/default/**/*.js', 'cypress/e2e/default/**/*.ts'],
|
||||
|
||||
// Temporary disable these until we can address the flakiness
|
||||
excludeSpecPattern: [
|
||||
'cypress/e2e/**/challenge-hot-keys.ts',
|
||||
'cypress/e2e/**/multifile.ts',
|
||||
'cypress/e2e/**/multifile-cert-project.ts'
|
||||
],
|
||||
|
||||
setupNodeEvents(on, config) {
|
||||
config.env = config.env || {};
|
||||
on('before:run', () => {
|
||||
|
||||
@ -41,7 +41,7 @@
|
||||
"create:utils": "tsc -p utils",
|
||||
"precypress": "node ./cypress-install.js",
|
||||
"cypress": "cypress",
|
||||
"cypress:dev:run": "pnpm run cypress run --spec cypress/e2e/default/**/*.{t,j}s",
|
||||
"cypress:dev:run": "pnpm run cypress run",
|
||||
"cypress:dev:watch": "pnpm run cypress open",
|
||||
"cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
|
||||
"cypress:install-build-tools": "sh ./cypress-install.sh",
|
||||
@ -117,7 +117,7 @@
|
||||
"babel-jest": "29.5.0",
|
||||
"babel-plugin-transform-imports": "2.0.0",
|
||||
"cross-env": "7.0.3",
|
||||
"cypress": "10.11.0",
|
||||
"cypress": "11.2.0",
|
||||
"cypress-plugin-stripe-elements": "1.0.2",
|
||||
"cypress-plugin-tab": "1.0.5",
|
||||
"docsify-cli": "4.4.4",
|
||||
|
||||
1546
pnpm-lock.yaml
1546
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user