nx test:playwright:screenshots: only do snapshots for Chrome (#33216)

* nx test:playwright:screenshots: only do snapshots for Chrome

`nx` eats the `--project` option unless we prefix with `--`.

* Apply suggestion from @richvdh
This commit is contained in:
Richard van der Hoff 2026-04-21 12:34:22 +01:00 committed by GitHub
parent 133a56da65
commit 3f3ed93b8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@
"dependsOn": ["^build:playwright"]
},
"test:playwright:screenshots": {
"command": "playwright-screenshots nx test:playwright -- --update-snapshots --project=Chrome --grep @screenshot",
"command": "playwright-screenshots playwright test --update-snapshots --project=Chrome --grep @screenshot",
"options": { "cwd": "apps/web" },
"dependsOn": ["^build:playwright"]
}