Complete the code to visit the homepage using Cypress.
cy.[1]('https://example.com')
The cy.visit() command is used to navigate to a specific URL in Cypress tests.
Complete the code to visit the login page with Cypress.
cy.[1]('/login')
cy.get() or cy.click() instead of cy.visit().Use cy.visit() with the relative URL to navigate to the login page.
Fix the error in the code to correctly navigate to the dashboard page.
cy.[1]('/dashboard')
cy.click() or cy.get() instead of cy.visit().The URL should be a string starting with '/' or a full URL. Using cy.visit() is correct, but the URL should be '/dashboard'.
Fill both blanks to visit the profile page and check the URL contains '/profile'.
cy.[1]('/profile') cy.url().should('[2]', '/profile')
click instead of visit.Use cy.visit() to open the page and should('include', '/profile') to check the URL.
Fill all three blanks to visit the settings page, wait for 2 seconds, and then check the URL includes '/settings'.
cy.[1]('/settings') cy.[2](2000) cy.url().should('[3]', '/settings')
click instead of visit.should('contain') instead of should('include').Use cy.visit() to open the page, cy.wait() to pause, and should('include', '/settings') to check the URL.