Skip to contentPlayForge
Act IIChapter 11
chapter 11

11. Assertions

Checks that retry until the page is ready, visual comparisons, and failures that explain themselves.

19m read19m in total

Chapter film (about 7m) is coming.

4 more checkpoints in this chapter

This chapter is part of Standard, which opens at launch. Its lessons are listed below.

  1. Web-First Assertions Cookbook
  2. Retry & Polling Patterns
  3. Visual Regression Testing
  4. Making a Failure Explain Itself
See what a full account includes

Practice

17 exercises attached to this chapter.

  • fixThe assertion that isn't one🔒 standard
  • fixA string is not a Promise🔒 standard
  • fixThe discarded count🔒 standard
  • fixRead but never compared🔒 standard
  • fixMisunderstanding pixel ratio🔒 elite
  • fixUnnecessary snapshot flag🔒 elite
  • fixCount vs Visibility🔒 elite
  • locatorSigned out chrome🔒 elite
  • locatorRevenue says Hidden🔒 elite
  • predictCounted, not seen🔒 standard
  • predictInvisible, not uncounted🔒 standard
  • predictAssertions: Measuring Time🔒 elite
  • mcqAdvanced & Framework — quiz bank (1 question)🔒 standard
  • mcqPlaywright core — quiz bank (4 questions)🔒 standard