e2e tests (#17)

* Setup playwright for e2e tests
Fixes #12

* Chromium

* First working test, clean up

* Merge actions

* New headless mode

* Clean up, bugfix

* Bug fixes, cleaner sendMessage code

* Rebase

* Rebase

* Load tokens and open public page

* Test CI

* Working test

* Lint

* Try to address flakyness

* Clean up test

* Comment

* No export

* More clean up

* More clean up

* Adds authorized pop up test

* Adds comment

* Add snapshots

* New linux screenshots
This commit is contained in:
Pierre Jacquier
2023-03-15 04:32:46 -04:00
committed by GitHub
parent 9208c46dac
commit f4fa083137
16 changed files with 3532 additions and 2365 deletions

View File

@ -24,6 +24,14 @@ jobs:
- run: yarn test
- name: Run playwright e2e tests
env:
GITHUB_TOKEN: ${{secrets.GLOBAL_PAT}}
KITTYCAD_TOKEN: ${{secrets.KITTYCAD_TOKEN}}
run: |
yarn playwright install chromium --with-deps
yarn playwright test
- uses: actions/upload-artifact@v3
with:
path: build