Closed marcosvfranco closed 8 months ago
I think it's by design. "Custom message" you use is meant for custom description of the expect in reporter. Like, if "expect.toHaveLength" is too confusing, you write "That array is of expected length 6".
Custom error messages are handled inside of custom assertions
As per above, this is by design, in the next version we'll adjust our wording and call it just message instead.
Folding into https://github.com/microsoft/playwright/issues/29378.
As per above, this is by design, in the next version we'll adjust our wording and call it just message instead.
Folding into https://github.com/microsoft/playwright/issues/29378.
Thanks, the documentation will be more clear like this way
Version
1.41.2
Steps to reproduce
npm i
npm test
Expected behavior
A normal description of the expect() should be displayed as normal, as we didn't have the Custom Error Message, like expect.toHaveLength()
Actual behavior
The Custom Error Message is being displayed on the HTML Report even when the Expect is successful, this is also happening on Custom Reports like Allure, but principally on our HTML Playwright Report.
Additional context
No response
Environment