element-web/playwright
Michael Telatynski 33d527ee5e
Migrate location.spec.ts from Cypress to Playwright (#11945)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-28 00:37:20 +00:00
..
e2e Migrate location.spec.ts from Cypress to Playwright (#11945) 2023-11-28 00:37:20 +00:00
pages Migrate location.spec.ts from Cypress to Playwright (#11945) 2023-11-28 00:37:20 +00:00
plugins
.gitignore
README.md
element-web-test.ts
global.d.ts
tsconfig.json

README.md

To update snapshots you will need to run Playwright on a Linux machine. If you have access to docker then you can use the following:

docker run \
    --rm \
    --network host \
    -v $(pwd)/../:/work/ \
    -v playwright-ew-node-modules:/work/element-web/node_modules \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /tmp/:/tmp/ \
    -w /work/matrix-react-sdk \
    -it mcr.microsoft.com/playwright:v1.40.0-jammy \
    sh -c "apt-get update && apt-get -y install docker.io && yarn --cwd ../element-web install && npx playwright test --update-snapshots --reporter line"