Skip to content

Commit 344b231

Browse files
authored
ci: fix run e2e command (#10779)
1 parent b9d3250 commit 344b231

File tree

12 files changed

+8782
-3102
lines changed

12 files changed

+8782
-3102
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@ jobs:
361361
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
362362
run: pnpm exec playwright install-deps chromium
363363

364+
- name: E2E Tests
365+
run: PLAYWRIGHT_JSON_OUTPUT_NAME=results_${{ matrix.suite }}.json pnpm test:e2e:prod:ci ${{ matrix.suite }}
366+
env:
367+
PLAYWRIGHT_JSON_OUTPUT_NAME: results_${{ matrix.suite }}.json
368+
NEXT_TELEMETRY_DISABLED: 1
369+
364370
- uses: actions/upload-artifact@v4
365371
if: always()
366372
with:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"@payloadcms/eslint-config": "workspace:*",
123123
"@payloadcms/eslint-plugin": "workspace:*",
124124
"@payloadcms/live-preview-react": "workspace:*",
125-
"@playwright/test": "1.49.1",
125+
"@playwright/test": "1.50.0",
126126
"@sentry/nextjs": "^8.33.1",
127127
"@sentry/node": "^8.33.1",
128128
"@swc-node/register": "1.10.9",
@@ -156,8 +156,8 @@
156156
"next": "15.1.5",
157157
"open": "^10.1.0",
158158
"p-limit": "^5.0.0",
159-
"playwright": "1.49.1",
160-
"playwright-core": "1.49.1",
159+
"playwright": "1.50.0",
160+
"playwright-core": "1.50.0",
161161
"prettier": "3.3.3",
162162
"react": "19.0.0",
163163
"react-dom": "19.0.0",

packages/ui/src/forms/fieldSchemasToFormState/addFieldStatePromise.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ export const addFieldStatePromise = async (args: AddFieldStatePromiseArgs): Prom
298298
const collapsed = (() => {
299299
// First, check if `previousFormState` has a matching row
300300
const previousRow = previousRows.find((prevRow) => prevRow.id === row.id)
301-
if (previousRow?.collapsed !== undefined) {
302-
return previousRow.collapsed
301+
if (previousRow) {
302+
return previousRow.collapsed ?? false
303303
}
304304

305305
// If previousFormState is undefined, check preferences

0 commit comments

Comments
 (0)