Skip to content

[Feature]: Attachment indicator for parent steps #40078

@jack5github

Description

@jack5github

🚀 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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions