[Feature]: `Update snapshot` sticky header in UI Mode Attachments panel
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
🚀 Feature Request
Add an Update snapshot action to each IMAGE DIFF section in UI Mode's Attachments panel.
The existing IMAGE DIFF header would remain sticky while scrolling through the comparison, with Update snapshot replacing that screenshot's expected snapshot with the actual screenshot.
This follows existing UI Mode patterns where actions are placed in a sticky header for the content they operate on, for example the Source panel actions:
https://github.com/user-attachments/assets/8d2c998b-2e56-4132-bccc-d3b23305bb1c
Example
After a failed test run with failing snapshots:
- Review a failed screenshot using the existing Diff / Actual / Expected views
- Click
Update snapshotfor any intentional change which should have the current snapshot replaced by the Actual snapshot - Continue reviewing the remaining image diffs individually
The existing Attachments panel:
The proposed action would be added to the existing IMAGE DIFF header:
IMAGE DIFF Update snapshot
──────────────────────────────────────────────────────────────────
Diff Actual Expected Side by side Slider
The header would remain sticky while scrolling through a large comparison. The action only appears for IMAGE DIFF sections, not other attachments.
Alternative designs can be seen in prior art:
Motivation
When several screenshot assertions fail, UI Mode lets you review each diff, but not update an intentional change directly from that diff.
I'm aware that Playwright v1.56+ supports updateSnapshots in UI Mode (issue #37007 + PR #37098), but the current workflow has a few drawbacks:
- If users enable it before running, snapshots are updated before users know whether the changes are correct
- If users run tests normally to failure and review first, accepting a change requires enabling it and running the test again, which can be slow, flaky, and interrupts the review flow
- Because updating is run-level, other changed snapshots can be updated before users have reviewed them
- Ngôn ngữ chính
- TypeScript
- Star
- 98.5k
- Fork
- 6.7k
- Merge trung bình
- 16 giờ 10 phút
- Pull request đã merge (30 ngày)
- 305
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/playwright
-
[Bug]: Uncaught TypeError in captureSecurityDetails when APIRequestContext reuses a destroyed keep-alive socketCó thể đã có người làm @microsoft-playwright-automation đã nhận 1 ngày trước. Đang mởneeds-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
microsoft/playwright#43728 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature]: Set `this.name` in `TargetClosedError` constructorCó thể làm lại được @LeonxLJX đã nhận 55 ngày trước và không có pull request nào đang mở. Đang mởP3-collecting-feedback
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
microsoft/playwright#42522 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test.fail() in after hooks relabels an already-executed test and can make a failing run exit 0Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
microsoft/playwright#43738 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
microsoft/playwright#43715 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/playwright#43711 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/playwright
Issue tương tự
-
Shell: serve the home app's Cookie Policy on a hard reloadCó thể đã có người làm @2001anshkaushik đã nhận hôm nay. Đang mởfeature module:ai
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
rocketride-org/rocketride-server#2899 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
wazuh/wazuh-dashboard-plugins#9551 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gofish-graphics/gofish-graphics#1252 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
optimization P3 size:XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
josephfung/curia#2366 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
stranded-follow-up sweep trusts any issue whose body carries the marker as the tracking issueĐang mởtype:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nightgauge/nightgauge#2688 ·
Maintainer thường phản hồi trong vòng 1 ngày