Skip to content

Commit

Permalink
ci: fix run e2e command (#10779)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioGr authored Jan 24, 2025
1 parent b9d3250 commit 344b231
Show file tree
Hide file tree
Showing 12 changed files with 8,782 additions and 3,102 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,12 @@ jobs:
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
run: pnpm exec playwright install-deps chromium

- name: E2E Tests
run: PLAYWRIGHT_JSON_OUTPUT_NAME=results_${{ matrix.suite }}.json pnpm test:e2e:prod:ci ${{ matrix.suite }}
env:
PLAYWRIGHT_JSON_OUTPUT_NAME: results_${{ matrix.suite }}.json
NEXT_TELEMETRY_DISABLED: 1

- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
"@payloadcms/eslint-config": "workspace:*",
"@payloadcms/eslint-plugin": "workspace:*",
"@payloadcms/live-preview-react": "workspace:*",
"@playwright/test": "1.49.1",
"@playwright/test": "1.50.0",
"@sentry/nextjs": "^8.33.1",
"@sentry/node": "^8.33.1",
"@swc-node/register": "1.10.9",
Expand Down Expand Up @@ -156,8 +156,8 @@
"next": "15.1.5",
"open": "^10.1.0",
"p-limit": "^5.0.0",
"playwright": "1.49.1",
"playwright-core": "1.49.1",
"playwright": "1.50.0",
"playwright-core": "1.50.0",
"prettier": "3.3.3",
"react": "19.0.0",
"react-dom": "19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ export const addFieldStatePromise = async (args: AddFieldStatePromiseArgs): Prom
const collapsed = (() => {
// First, check if `previousFormState` has a matching row
const previousRow = previousRows.find((prevRow) => prevRow.id === row.id)
if (previousRow?.collapsed !== undefined) {
return previousRow.collapsed
if (previousRow) {
return previousRow.collapsed ?? false
}

// If previousFormState is undefined, check preferences
Expand Down
Loading

0 comments on commit 344b231

Please sign in to comment.