-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(html reporter): show attachments in attachment steps #33038
Conversation
This comment has been minimized.
This comment has been minimized.
Those test failures are all because attachments are now listed twice on the page, so Playwright doesn't know what element to resolve to. I'll update the tests once we've agreed on a UI for this. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Turning into draft to implement what we discussed yesterday:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This reverts commit e4786e0.
This comment has been minimized.
This comment has been minimized.
Here's another draft for how the attachments UI could look like. It keeps the existing Screen.Recording.2024-10-16.at.16.02.48.movIt's not very polished, but I think I prefer the current approach where the attachments are inside the step list. |
notes from call with Dima:
Unrelated:
|
This reverts commit 1b8cd6d.
Test results for "tests 1"55 failed 36354 passed, 639 skipped Merge workflow run. |
closing in favour of separate PRs |
Closes #32748.
Adds a
TestStep.attachments
array to the Reporter API that shows all attachments for the step. Removes the artificialattach "foo"
step for all calls exceptTestInfo.attach()
. Updates the HTML Report to show attachments in the step list.Before:
After:
Note that the
Attachments
chip goes away in favour of showing all attachments in the steps view. This means there's less repetition in the UI, but it also makes it harder to find deeply nested attachments. I'll also work on an alternative UI to see what else we could show here.