Deep Dive Topics
Page 2 of 6
Stubbing GraphQL Requests in Playwright
Stubbing GraphQL Requests in Playwright REST gives every resource its own URL, so a glob pattern is enough to isolate one endpoint. GraphQL does the opposite: a page's entire data...
Asserting on API Responses Alongside UI
Asserting on API Responses Alongside UI A test that only inspects the rendered DOM cannot tell you whether the "Place order" button actually persisted an order, and a test that on...
Soft Assertions for Multi-Check Tests
Soft Assertions for Multi-Check Tests An order confirmation screen states a dozen independent facts at once: an order number, a line-item table, a subtotal, tax, shipping, a deliv...
Writing Custom expect Matchers
Writing Custom expect Matchers Every suite eventually grows an assertion that the built-in matchers cannot express in one line: a price cell that must equal a decimal after curren...
Configuring Retries and Timeouts for Stable CI
Configuring Retries and Timeouts for Stable CI Timeouts and retries are the safety valves that keep a suite green on slow, contended CI hardware without papering over real bugs. S...
Detecting and Fixing Flaky Playwright Tests
Detecting and Fixing Flaky Playwright Tests A test that fails one run in fifty is invisible to a single CI pass, so the first job is to make the flakiness reproduce on demand. Onc...
Quarantining Flaky Tests Without Blocking CI
Quarantining Flaky Tests Without Blocking CI One test that fails on roughly a third of runs will block every unrelated pull request in the repository until somebody fixes it, and ...
Capturing Screenshots and Video on Test Failure
Capturing Screenshots and Video on Test Failure When a test fails on CI that nobody was watching, the only way to understand it is the evidence the run left behind. Playwright can...
Writing a Custom Playwright Reporter
Writing a Custom Playwright Reporter Sooner or later a team needs a result feed that no built-in reporter emits: a row per test in a warehouse table, a Slack digest that names the...
Analyzing Test Failures with the Playwright Trace Viewer
Analyzing Test Failures with the Playwright Trace Viewer A CI job goes red with expect(locator).toBeVisible() failed . The stack trace tells you which assertion broke but not why ...