Common testing mistake: Describing behavior without context


Common testing mistake: Describing behavior without context.

Poor name: 👎
should show 'Edit' button

Better name: 👍
should show 'Edit' button when user is an admin

General format: "Should do x when y".

The test's name should fully describe the scenario being tested.

#tdd

View original on X