In this spec, we can observe the following improvements that can be made:
- Move hard-coded strings to selectors.
- Use relative URLs instead of absolute URLs.
- Wrap the steps in proper test blocks.
- Use proper beforeEach hook to handle the test setup.
Since we are familiar with all four of these best practices, let's implement
them in our code.