playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Display fallback snapshot in Trace Viewer

Open agg23 opened this issue 1 year ago • 2 comments

🚀 Feature Request

In some situations (currently with locator.count()), a trace entry may have an empty snapshot. When this occurs we should display the last complete snapshot, if any, possibly indicating that the displayed snapshot is stale.

Example

No response

Motivation

Users should never see an empty snapshot view.

agg23 avatar Dec 16 '24 18:12 agg23

Hey, I have started working on this issue. I have definitely encountered this issue in the past, but seems to be intermittent. Is there any sure shot way of reproducing it ?

GeneratorX16 avatar May 31 '25 08:05 GeneratorX16

@GeneratorX16 It requires a call in protocol.yml to not have snapshot: true set. I tried to go through and fix all of those, but for future features, it's useful to also fix Trace Viewer.

agg23 avatar Jun 02 '25 12:06 agg23