02 First Script - biswajitsundara/Cypress GitHub Wiki
The scripts should be placed under integration/examples
/// <reference types="cypress" /> describe('My First Test', () => { it('Log in to practice website', () => { cy.visit("http://automationpractice.com/index.php?controller=authentication&back=my-account"); cy.get('#email').type('[email protected]'); cy.get('#passwd').type('automation'); cy.get('#SubmitLogin').click(); cy.get('.account').invoke('text').then( (text => { expect(text.trim()).to.eq('myname') })); }) })