-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Feature]: Attachment indicator for parent steps #40078
Description
🚀 Feature Request
If a parent step, somewhere within it, contains child steps that have attachments, it should have a distinct, greyed-out icon (e.g.: diff-modified from Octicons), indicating that something is contained within it but avoiding being mistaken for an interactive element.
Example
In the above screenshot, Attach "Peter Mac Anderson" directory record is a child step of Then Get active directory record as "directoryRecord". (This step architecture is automatically created by playwright-bdd.) As seen via the zip file icon, Attach "Peter Mac Anderson" directory record contains an attachment. The requested icon would appear on the far-right side of Then Get active directory record as "directoryRecord", as well as any of its parents, because there is a child with an attachment.
Motivation
Knowledge of where attachments are can improve test debugging speed. When a parent step is collapsed, it is impossible to tell that one of its children contains an attachment. This is especially problematic in tests that use a nested architecture, such as those that use test.step() or were created in playwright-bdd. This feature would resolve this problem, ensuring near-immediate visibility and inspection of steps with attachments.