This thread is trying to answer question "How can the issue of 'test.afterAll()' being executed multiple times be avoided?"
maybe you need to store the data created in some json file. I have to use that approach due to I need some accesibility errors I tried with soft assertions but is the same behavior this is my issue in github https://github.com/microsoft/playwright/issues/23586
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].