Introduction
We use expect() to check if something in our app works as we want. It helps us catch mistakes early.
To check if a button is visible on the page.
To verify if a text appears after clicking a link.
To confirm a number value is correct after a calculation.
To test if a list contains the expected items.
To make sure a form input has the right value.