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.
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 firstname.lastname@example.org.