microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.4k stars 3.63k forks source link

[Feature]: Custom Assert Messages within the .NET Bindings #31218

Closed TheSmartTester closed 4 months ago

TheSmartTester commented 4 months ago

🚀 Feature Request

I know we have this feature within Node.js https://playwright.dev/docs/test-assertions#custom-expect-message But could we please have it within the .NET Bindings.

Example

It will aid debugging when tests fail

Motivation

As above

mxschmitt commented 4 months ago

Folding into https://github.com/microsoft/playwright-dotnet/issues/2161