lecture 11 of 180 completed

Checks that actually catch bugs

A weak assertion passes on a broken app. Here are the three weak ones you will write without noticing.

What you'll learn

  • The three weak assertions that pass on a broken app
  • How to assert the value a user depends on
  • How to name the bug a check would catch

You already know a test with no assertion proves nothing. At this level the problem is different. Your test has assertions, they pass, and the app is still broken.

Here are the three weak checks that get through code review every day.

Weak check 1: you check something exists, not what it says.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →