Is there a way to list all the Playwright tests without running them? Yes, yes there is! The below command can be run and will give you a list of all the tests that would be run. Listing out the tests gives you access to the file name and location of the test, test name, total number of tests, and total number of
How can I run multiple groups of tags with Playwright Test Runner? If you are using Playwright Test there is this sweet sweet option to tag the tests you are writing with a single or multiple tags [https://playwright.dev/docs/test-annotations#tag-tests]. The challenge may come with you have multiple tags you would like to run together. Let's say
In Playwright Test is there an easy way to loop the test multiple times to check for flakiness? I've found it to be a good practice to run new automated tests or edits to existing tests a few times on a pull request to check for flakiness prior to merging the new code into the main branch of the test suite. To do this you can
What's an easy way to tell how many Playwright Tests I can comfortably run in parallel? The good news, is by default Playwright takes a stab at running tests in parallel based on your computer specs. The even better news is you may be able to get faster feedback when running your Playwright Tests by increasing or decreasing the worker count. You can learn a whole
Is There a Way for Playwright Tests to Include Additional Information in HTML Report After a Run? I've found as the automation suite grows, typically you need a way to easily surface information to the testers or developers who are reviewing the test run reports. Thankfully the playwright team has given us this functionality within the @playwright/test runner. There is an info() method that
Access a Table Row With Unique Text From a Cell in Playwright There are a ton of different ways to interact with tables, this is the first of many examples of different ways you can extract/confirm data exists where it should in your Playwright Tests. For this example we will use the table found at https://letcode.in/table For this
Playwright API POST request to upload a file with Content-Type: multipart/form-data When writing automation against my API, I ran into an issue attempting to make a post using playwright api to upload a file. The answer came in the form of a slack thread [https://playwright.slack.com/archives/CSUHZPVLM/p1638175756183800?thread_ts=1638175752.183700&cid=CSUHZPVLM] , I figured I