Skip to content

[Feature]: Allow to hide selected actions from HTML Report #33287

Open
@AdamOakman

Description

@AdamOakman

🚀 Feature Request

Let's say I have a locatorHandler for detecting and waiting for some unexpected animations registered as part of an autofixture - I would like to be able to hide all waitFor calls from the report to avoid unnecessary irrelevant noise information that is printed out in the HTML report in between relevant test.steps.

I don't want to put it in test.step block, I would like to hide it completely.

    waitForNgAnimations: [false, { option: true }],
    registerNgAnimationsWaitingHandler: [
        async ({ page, waitForNgAnimations }, use) => {
            if (waitForNgAnimations) {
                await page.addLocatorHandler(page.locator('.ng-animating').first(), async () => {
                    for (const element of await page.locator('.ng-animating').all()) {
                        await element.waitFor({ state: 'detached' });
                    }
                });
            }
            await use();
        },
        { auto: true }
    ]

Image

Example

No response

Motivation

Reduce noisiness in HTML report for actions that do not come explicitely from spec file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions