-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Playwright test for project creation workflow #1700
Conversation
@spwoodcock, have a look on this create project test. Please comment if there more assertions are to be made in this workflow. This test only test one flow. |
6ed561f
to
d828d70
Compare
It rebased this with @NSUWAL123 please:
|
I updated the docker networking and vars for this to work better. You should be able to run: just --unstable test frontend
# To see the browser and do interactive test recording
just --unstable test frontend-interactive Alternatively the direct command is: docker compose \
-f docker-compose.yml \
-f contrib/playwright/docker-compose.yml \
run --rm --service-ports ui-test
Note that the test data used generates 2376 features. |
I just need to update so this works in the CI now π |
What type of PR is this? (check all applicable)
Related Issue
Describe this PR
This PR contains works to test create project workflow.
Screenshots
Screencast.from.24-7-24.01.18.24.+0545.webm
Comment
From @spwoodcock: added multiple variants of running the tests:
test:e2e
is the standard test that runs until completion, without starting the report UI.test:e2e-report
starts the report UI afterwards to see the test output and traces.test:e2e-debug
runs the browser in--headful
mode (i.e. with a browser), allowing us to step through the test and see what it actually does in the UI.test:e2e-interactive
also starts a web browser, but this time with a recording option, allowing us to write tests by recording the clicks we make on the UI.All test also produce a trace.zip, which is a very helpful functionality to debug why a test may have failed:
playwright-report.zip
..zip
file underdata
to get the traces.https://trace.playwright.dev
and uploaded the extracted traces.