This thread is trying to answer question "How can the Playwright report be enhanced with more context and details?"
Playwright has custom annotations which could potentially solve part of the above problem https://playwright.dev/docs/test-annotations#tag-tests refer “custom annotations “ section in the link
I attach a json file to each of my tests to allow a tester to manually rerun the test based on the dynamic data created. I found this very useful to keep the actual data away from the report. I also used allure reports which are easy to implement as well for playwright. I implemented allure reports with playwright, which worked great, but needed to pull it since we implemented GH pages and this did not work for us. Eventually we plan to revisit allure reports to go to S3 bucket rather than GH pages. One thing besides the annotation of tests from allure reports, I think a way of historically trending tests. I understand we do see flaky tests in a single run, but over a 30 day period we would like to prioritize our work towards tests that are problematic over a period of time. But hey, annotation is a great start to improve reporting rather than rolling a custom approach. I will up vote reporting improvements.
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].