Playwright reports uncaught javascript errors as a pageerror event, separate from console messages, and playwright-php does not expose it yet. They are therefore missing from saveConsoleLog(), dumpConsoleLog() and saveCurrentState(), which are exactly the places you would want them.
can_dump_console_log_with_throw_error in PlaywrightBrowserTest is skipped until the event is available. The subscription would sit next to the existing onConsole() one in PlaywrightBrowser::__construct().
Blocked on playwright-php exposing the event.
Playwright reports uncaught javascript errors as a
pageerrorevent, separate from console messages, andplaywright-phpdoes not expose it yet. They are therefore missing fromsaveConsoleLog(),dumpConsoleLog()andsaveCurrentState(), which are exactly the places you would want them.can_dump_console_log_with_throw_errorinPlaywrightBrowserTestis skipped until the event is available. The subscription would sit next to the existingonConsole()one inPlaywrightBrowser::__construct().Blocked on playwright-php exposing the event.