diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md index 3c29376060..6711777967 100644 --- a/docs/src/intro-js.md +++ b/docs/src/intro-js.md @@ -87,6 +87,17 @@ npx playwright test ![tests running in command line](https://github.com/microsoft/playwright/assets/13063165/981c1b2b-dc7e-4b85-b241-272b44da6628) See our doc on [Running Tests](./running-tests.md) to learn more about running tests in headed mode, running multiple tests, running specific tests etc. + +## HTML Test Reports + +After your test completes, an [HTML Reporter](./test-reporters.md#html-reporter) will be generated, which shows you a full report of your tests allowing you to filter the report by browsers, passed tests, failed tests, skipped tests and flaky tests. You can click on each test and explore the test's errors as well as each step of the test. By default, the HTML report is opened automatically if some of the tests failed. + +```bash +npx playwright show-report +``` + +![HTML Report](https://github.com/microsoft/playwright/assets/13063165/38ec17a7-9e61-4002-b137-a93812765501) + ## Running the Example Test in UI Mode Run your tests with [UI Mode](./test-ui-mode.md) for a better developer experience with time travel debugging, watch mode and more. @@ -98,16 +109,6 @@ npx playwright test --ui Check out or [detailed guide on UI Mode](./test-ui-mode.md) to learn more about it's features. -## HTML Test Reports - -Once your test has finished running a [HTML Reporter](./test-reporters.md#html-reporter) will have been created which shows you a full report of your tests allowing you to filter the report by browsers, passed tests, failed tests, skipped tests and flaky tests. You can click on each test and explore the test's errors as well as each step of the test. By default, the HTML report is opened automatically if some of the tests failed. - -```bash -npx playwright show-report -``` - -![HTML Report](https://github.com/microsoft/playwright/assets/13063165/38ec17a7-9e61-4002-b137-a93812765501) - ## Updating Playwright To update Playwright to the latest version run the following command: