Wait until the page is ready to start testing
Moved some test logic into a beforeEach()