Box Assertion

Box assertions help preserve the location, pixel accuracy, and size of certain elements. When making UI changes (particularly to buttons) this assertion is heavily used.

This allows you to check that a box:

  • Preserves the same position on the screen
  • Preserves the same dimensions
  • Preserves perfect pixel accuracy