A Playwright trace records every action, page and request of a test. That makes it a copy of every secret the test touched. In a 4-test suite with 4 fake secrets, one sign-in test left the password in its trace 7 times. The session cookie was in the traces 27 times, and the HTML report carried all of it again.
This guide shows what each artifact holds, how to open a trace, and two ways to share one safely: record less, or scrub with tracescrub , a tool I maintain. Scrubbing removed every text copy, and the trace still opened. It did not touch the screenshots, and a scrubbed frame still shows the API key.…