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
If you run tests after changing some element structure which has been snapshotted, all of the snapshot comparisons will fail and/or event targets might not be found, and you'll have to rerecord the entire test sequence to update the snapshots and target selectors.
There are a few solutions I can think of to handle this elegantly/painlessly:
Apply diff patches to all remaining snapshots - i.e., when you run into the first diff, there could be an "Apply Patch to All" button which if clicked would resume testing and automatically apply the diff patch to any subsequent diffs that seem to match. Maybe also offer the option to apply one at a time?
Replace all matching event target selectors - i.e., if you know how a target selector has changed, it would be nice to be able to immediately update all matching event target selectors.
It may also be possible to automatically update event target selectors based on applied diff patches?
We could also offer the option to automatically rerecord everything by replaying every action and trusting all the new snapshots. Each action would need updated target selectors as necessary though.
We could also offer the option to allow (ignore) particular diffs without actually applying them.
The text was updated successfully, but these errors were encountered:
If you run tests after changing some element structure which has been snapshotted, all of the snapshot comparisons will fail and/or event targets might not be found, and you'll have to rerecord the entire test sequence to update the snapshots and target selectors.
There are a few solutions I can think of to handle this elegantly/painlessly:
The text was updated successfully, but these errors were encountered: