Rayrun
← Back to videos

Playwright Global Teardown

Practice Test Automation: https://commitquality.com

In this video, the presenter demonstrates how to perform tear down in playwright. Tear down refers to cleaning up and removing resources after running tests. The presenter starts by setting up a GitHub repository and logging in with a global setup file. Then, they show how to use the teardown feature in playwright to delete all the products added during the tests. The presenter goes through the code and explains each step, demonstrating how to click the "show more" button and delete all the rows in a table. The video also covers setting up the teardown project in the playwright config file and executing the teardown at the end of the tests. The presenter concludes by running the tests and showing the desired result of having no products left after the teardown is executed. Overall, the video provides a detailed explanation of how to use the tear down feature in playwright, making it easier to clean up resources after running tests.

Related Videos

Playwright - Set timeout, parallelisation and retries directly in your test files
Playwright - Set timeout, parallelisation and retries directly in your test files
Element Handle VS Locator API | Playwright Tutorial - Part 47
Element Handle VS Locator API | Playwright Tutorial - Part 47
Playwright Version 1.14 | Playwright Tutorial - Part 45
Playwright Version 1.14 | Playwright Tutorial - Part 45
First Script - Auto Waits | Playwright - Part 3
First Script - Auto Waits | Playwright - Part 3
TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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 luc@ray.run.