Introduction
We use cy.visit() to open a web page in our test. It helps us start testing from the right page.
When you want to open the homepage before testing features on it.
When you need to test a login page by opening its URL first.
When you want to check if a specific page loads correctly.
When you want to reset the test by visiting a fresh page.
When you want to test navigation by visiting different URLs.