Fix shared component screenshot update (#31568)
* build: fix shared component screenshot update The yarn command `test:storybook:update` was running twice `playwright-sceenshots`. However this script is using ryuk to delete remaining containers/etc and ryuk does the cleanup after 50sec of idle. So on the script second call, ryuk container was still running and the script failed. This PR introduces a shell script to install the dependencies and to run the tests in the same playrwright-screenshots call. * Update packages/shared-components/scripts/storybook-screenshot-update.sh Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update packages/shared-components/scripts/storybook-screenshot-update.sh Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * doc: fix duplicated documentation after github commit --------- Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
co-authored by
Richard van der Hoff
parent
7a69ab8be4
commit
6f0369e623
@@ -43,7 +43,7 @@
|
||||
"lint:types": "tsc --noEmit --jsx react",
|
||||
"test:storybook": "test-storybook --url http://localhost:6007/",
|
||||
"test:storybook:ci": "concurrently -k -s first -n \"SB,TEST\" \"yarn storybook --no-open\" \"wait-on tcp:6007 && yarn test-storybook --url http://localhost:6007/ --ci --maxWorkers=2\"",
|
||||
"test:storybook:update": "playwright-screenshots --entrypoint yarn --with-node-modules && playwright-screenshots --entrypoint /work/node_modules/.bin/test-storybook --with-node-modules --url http://host.docker.internal:6007/ --updateSnapshot"
|
||||
"test:storybook:update": "playwright-screenshots --entrypoint /work/scripts/storybook-screenshot-update.sh --with-node-modules"
|
||||
},
|
||||
"resolutions": {
|
||||
"playwright": "1.57.0"
|
||||
|
||||
Reference in New Issue
Block a user