Tag test in Playwright, Tags in playwright tests, Tagging in Playwright
Welcome to another video in our Playwright with TypeScript series. This tutorial covers how to run tests using tags in Playwright. If you haven't watched the previous video on providing and executing test tags, you can find the link in the description or click the 'i' button at the top right corner.
In the previous video, we learned how to add single or multiple tags to test titles using the @
symbol, and how to provide tags via the test's second argument as an object. We also covered commands to run (npx playwright test -g @TAG_NAME
) or skip (npx playwright test -g-v @TAG_NAME
) tests with specific tags.
In this video, we'll delve into running tests with either a single tag or multiple tags using different terminal types, namely PowerShell, Bash, and CMD.
To run tests containing either one tag or another, use specific commands for each terminal type:
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].