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

Fix navigation timeout errors in E2E tests #7669

Merged
merged 8 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ jobs:
actions: write
env:
WP_BASE_URL: 'http://127.0.0.1:8890'
JEST_PUPPETEER_CONFIG: './tests/e2e/puppeteer.config.js'
strategy:
fail-fast: false
matrix:
Expand All @@ -222,6 +223,12 @@ jobs:
path: ~/.jest-cache
key: ${{ runner.os }}-jest-e2e-${{ matrix.part }}

- name: Setup puppeteer cache
uses: actions/[email protected]
with:
path: ~/.cache/puppeteer
key: ${{ runner.os }}-puppeteer

- name: Start Docker environment
run: npm run env:start:ci
env:
Expand Down
193 changes: 123 additions & 70 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"postcss-nested": "6.0.1",
"postcss-preset-env": "9.2.0",
"prettier": "3.0.3",
"puppeteer": "21.5.0",
"react-test-renderer": "18.2.0",
"rtlcss-webpack-plugin": "4.0.7",
"semver": "7.5.4",
Expand Down Expand Up @@ -134,12 +135,11 @@
"prepare": "husky install",
"start": "wp-scripts start",
"test": "npm-run-all --parallel test:*",
"test:e2e": "wp-scripts test-e2e --config=tests/e2e/jest.config.js",
"test:e2e": "cross-env JEST_PUPPETEER_CONFIG=./tests/e2e/puppeteer.config.js wp-scripts test-e2e --config=tests/e2e/jest.config.js",
"test:e2e:help": "npm run test:e2e -- --help",
"test:e2e:watch": "npm run test:e2e -- --watch",
"test:e2e:interactive": "npm run test:e2e -- --puppeteer-interactive",
"pretest:e2e:ci": "npx patch-package",
westonruter marked this conversation as resolved.
Show resolved Hide resolved
"test:e2e:ci": "cross-env WP_BASE_URL=http://127.0.0.1:8890 wp-scripts test-e2e --config=tests/e2e/jest-ci.config.js --runInBand",
"test:e2e:ci": "cross-env WP_BASE_URL=http://127.0.0.1:8890 JEST_PUPPETEER_CONFIG=./tests/e2e/puppeteer.config.js wp-scripts test-e2e --config=tests/e2e/jest-ci.config.js --runInBand",
"test:js": "wp-scripts test-unit-js --config=tests/js/jest.config.js",
"test:js:help": "wp-scripts test-unit-js --help",
"test:js:update-snapshots": "npm run test:js -- --updateSnapshot",
Expand Down
Loading