You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Note: This step needs to be done manually after installing requirements. Pre-commit hooks (including Black formatter) cannot be installed automatically through requirements.txt as this is a Git security feature.
To execute your Playwright tests with pytest, run:
# To run functional tests:pytest -v -s test_graphql/tests# To run visual tests:pytest e2e/ -v --headed# Run a specific testpytest tests/test_auth.py -k test_user_registrationpytest tests/test_auth.py -k test_user_login# Run with more detailed outputpytest tests/test_auth.py -v
If you want to run Playwright tests in headed mode (with browser UI), use:
pytest --headed
For running tests in a specific browser, specify it as follows:
pytest --browser=chromium# or firefox, webkit
Environment Variables
To store authentication tokens and other secrets securely, create a.env file:
TOKEN=your_auth_token_here
Then, load environment variables in your test files using: