You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I had this question here and I put together sample runnable project here
I have a callback from browser which is orchestrated by playwright - this callback is to report error which happens in the app. Once that happens I know for sure I want to fail the test to save resources. How can I do that?
More specifically I want to fail the test from this line here
The text was updated successfully, but these errors were encountered:
You need to send that back , e.g. create an Error property in your BrowserFactory, Fill that property from inside your handler, and then Assert on that property in your test. You can of course also use other methods, but in essence, you need to get the information out of the handler.
Dependent on what more you're using this for, it could be wise to perhaps make BrowserFactory a non-static object.
Hello, I had this question here and I put together sample runnable project here
I have a callback from browser which is orchestrated by playwright - this callback is to report error which happens in the app. Once that happens I know for sure I want to fail the test to save resources. How can I do that?
More specifically I want to fail the test from this line here
The text was updated successfully, but these errors were encountered: