Log Assertion
A check that verifies specific messages or the absence of errors in an application's console or server logs.
What is Log Assertion?
What is Log Assertion?
A log assertion validates behavior by examining output that isn't visible in the UI—browser console messages, network errors, or server logs—asserting that an expected event was logged or, just as often, that no errors or warnings appeared during a flow. It catches silent failures that a purely visual test would miss, like a caught exception or a failed background request. Playwright can capture console and network activity during a run, so recorded flows can assert on a clean console as part of validating the user journey.