You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: setting sources: false in trace config does not prevent source recording #32745
Open the generated trace output after the test run.
Check if source files are being recorded.
Expected behavior
No source files should be recorded in the trace when sources: false is specified in the configuration.
All other options (attachments: false, screenshots: true, snapshots: true) should work as expected.
Actual behavior
Source files are still being recorded despite setting sources: false.
Other options (attachments, screenshots, snapshots) behave as expected and follow the configuration properly.
While I was able to reproduce the behaviour, it seems to work as expected:
When having sources: false we don't include them in the trace - but we will try to open the local file directly if its available. If you run the Trace Viewer locally, the files are available and we show them.
When having sources: true we include a copy of the source file into the trace.zip
Activity
mxschmitt commentedon Sep 23, 2024
While I was able to reproduce the behaviour, it seems to work as expected:
sources: falsewe don't include them in the trace - but we will try to open the local file directly if its available. If you run the Trace Viewer locally, the files are available and we show them.sources: truewe include a copy of the source file into the trace.zipSo when you try to open the trace.zip on https://trace.playwright.dev it won't show any sources if you set
sources: false.mxschmitt commentedon Sep 23, 2024
Closing as per above.