Udemy Playwright: Web Automation Testing From Zero to Hero: Difference between revisions
Jump to navigation
Jump to search
Udemy Playwright: Web Automation Testing From Zero to Hero (view source)
Revision as of 23:42, 4 June 2024
, 4 June→Ways to Run & Debug
Line 49: | Line 49: | ||
npx playwright test example.spec.ts --project=chromium --headed | npx playwright test example.spec.ts --project=chromium --headed | ||
npx playwright test -g "has title" | npx playwright test -g "has title" | ||
npx playwright show-report</nowiki> | npx playwright show-report | ||
CI=true npx playwright test</nowiki> | |||
* Test Execution with UI - ''OMG this debug UI is cool!'' | * Test Execution with UI - ''OMG this debug UI is cool!'' | ||
Line 61: | Line 62: | ||
: trace can be generated from CI/CD pipeline too, and then you can view the results saved in a zip file with a trace viewer | : trace can be generated from CI/CD pipeline too, and then you can view the results saved in a zip file with a trace viewer | ||
* Test Execution with debug <nowiki> | * Test Execution with debug | ||
<nowiki> | |||
npx playwright test --project=chromium --debug</nowiki> | npx playwright test --project=chromium --debug</nowiki> | ||
: this opens the Playwright inspector showing the code, debugging controls, and console information | : this opens the Playwright inspector showing the code, debugging controls, and console information |