element-web/playwright
Michael Telatynski 87f1ae4665
Migrate user-menu.spec.ts from Cypress to Playwright (#11940)
* Migrate user-menu.spec.ts from Cypress to Playwright

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2023-11-27 11:22:59 +00:00
..
e2e Migrate user-menu.spec.ts from Cypress to Playwright (#11940) 2023-11-27 11:22:59 +00:00
pages Migrate analytics-toast.spec.ts from Cypress to Playwright (#11939) 2023-11-27 10:00:16 +00:00
plugins Use Playwright snapshot utility instead of Percy (#11922) 2023-11-24 12:32:07 +00:00
.gitignore Use Playwright snapshot utility instead of Percy (#11922) 2023-11-24 12:32:07 +00:00
element-web-test.ts Migrate analytics-toast.spec.ts from Cypress to Playwright (#11939) 2023-11-27 10:00:16 +00:00
README.md Use Playwright snapshot utility instead of Percy (#11922) 2023-11-24 12:32:07 +00:00
tsconfig.json Port remaining login.spec.ts & soft_logout.spec.ts tests from Cypress to Playwright (#11917) 2023-11-23 10:27:11 +00:00

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"