Introduction
Assertions check if things on a webpage are correct. They help us know if the page works as expected.
Check if a button or link is present on the page before clicking it.
Verify that a message or label is visible to the user.
Confirm that a heading or paragraph has the right text.
Make sure an error message appears after a wrong input.
Ensure a loading spinner disappears after content loads.