In project I use node js 20.5.1, playwright 1.37. with cucumber 8.0.0. I want to add own customer message if expected method return me a failed. I thought I could do it like below:
expect(3),"My custom message").toBeLessThanOrEqual(2);
And in test result I should for that step Error: My custom message,
,but I only see
Error: expect(received).toBeLessThanOrEqual(expected)
Do you know how I could handled with that ? :) Thanks for any tips :)