Menu

1 / 5

Sharing Playwright Traces Safely: One Sign-in, 7 Copies of the Password

DEV Community: github·Gary Parker·6 days ago
#6TvUElUu
#devtogithub#technology#devto#dev#trace
Long article (1672 words) — no AI summary yet.
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.