First Script in Cypress - The Test Tribe

First Script in Cypress

Note – 

/// <reference types=”Cypress” />

describe(‘Login Functionality’,function(){

it(‘Login Test using Conduit’,function(){
cy.visit(‘https://react-redux.realworld.io/’)
cy.get(‘a[href=”#login”]’).click()
cy.get(‘input[placeholder=”Email”]’).type(‘[email protected]’)
cy.get(‘input[placeholder=”Password”]’).type(‘cypressdemo’)
cy.get(‘button[type=”submit”]’).click()
cy.get(‘a[href=”#settings”]’).click()
cy.get(‘.btn.btn-outline-danger’).click()
})
})