Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
playwright run options
  • Loading branch information
Remus287 authored Dec 16, 2024
1 parent 549ee1d commit 3e91cec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ Individual Playwright files can be run with ```npx playwright test testfile.test
Individual Playwright tests can be run with ```npx playwright test testfile.test.js testname```. This will run a single specified test.
Tests can be viewed in the playwright UI using the ```--ui``` flag
Tests can be viewed in the playwright UI using the ```--ui``` flag.
Tests can be run in the native browser using the ```--headed``` flag. This is needed for tests that open or interact with a .pdf file, such as: 'Voting option: Official Absentee Ballot Application'.
Tests can be run for multiple browsers or a single browser, for example to use only the native chromium browser use the flags ```--project=chromium``` and ```--headed```.
Example Command for running test file: 'votingOptions.test.js' in the UI chromium browser.
* ```npx playwright test votingOptions.test.js --project=chromium --headed```
## PLAYWRIGHT TESTS
Expand Down

0 comments on commit 3e91cec

Please sign in to comment.