Skip to content

Commit

Permalink
chore: change scripts names
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinOm committed Jul 7, 2024
1 parent 36fafc9 commit 618f92f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/client/cypress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG NODE_VERSION='20.11.1'
ARG CYPRESS_VERSION='13.5.1'
FROM cypress/factory:4.0.2

# Install chromium in this way since there is no browsers in the docker container for the arm64 architecture
# https://github.com/cypress-io/cypress-docker-images/issues/695
RUN apt update && apt install -y chromium

ENTRYPOINT ["yarn", "snapshot:customer-functional"]
ENTRYPOINT ["yarn", "cypress:snapshot"]
5 changes: 3 additions & 2 deletions app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
"check-types": "yarn tsc --noEmit",
"init-husky": "cd ../.. && husky install app/client/.husky",
"clean:workspaces": "yarn workspaces foreach -pAv exec rm -rf node_modules",
"snapshot:customer-functional": "npx cypress run --browser chromium --spec './cypress/e2e/Regression/ClientSide/Anvil/Widgets/*_spec.ts'",
"snapshot:customer-functional:docker": "docker run --network='host' -it --rm -e CYPRESS_updateSnapshots=%CYPRESS_updateSnapshots% -v $PWD:/cypress -w /cypress snapshot-testing"
"cypress:snapshot": "npx cypress run --browser chromium --spec './cypress/e2e/Regression/ClientSide/Anvil/Widgets/*_spec.ts'",
"cypress:snapshot:docker": "docker run --network='host' -it --rm -e CYPRESS_updateSnapshots=%CYPRESS_updateSnapshots% -v $PWD:/cypress -w /cypress cypress-snapshot",
"cypress:snapshot:docker:build": " docker build . -f cypress/Dockerfile -t cypress-snapshot"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.441.0",
Expand Down

0 comments on commit 618f92f

Please sign in to comment.