playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Add option to hide expect from report

Open kosteklvp opened this issue 1 year ago • 0 comments

🚀 Feature Request

It is possible to customize expect's message or make it soft. Maybe an option to hide it from report, can be added? Something like this:

export const expect = baseExpect.extend(...)
.configure({
    message: 'Custom message',
    soft: true,
    hidden: true,
});

(Or set the message as null?)

Motivation

I am having troubles with hiding expect steps from HTML report. We are using an expect, which is called many times in every test. This creates much noise in the final HTML report. There are a lot of ones like this:

Image

I did not find a solution to hide. I tried a custom message for it and wrapping it in a step, but this is not enough. We need to hide it completely from report.

kosteklvp avatar Nov 22 '24 18:11 kosteklvp