A solid test generally covers 3 phases:
- Set up the application state.
- Take an action.
- Make an assertion about the resulting application state.
You can take a narrow view of these steps in web testing as:
- Visit a web page.
- Query for an element.
- Interact with that element.
- Assert about the content on that page.