PromucFlow_constructor/app/client/cypress/support/commands.js
2020-03-10 09:38:12 +00:00

9 lines
257 B
JavaScript

var loginPage= require('../locators/LoginPage.json')
Cypress.Commands.add("LogintoApp",(uname,pword)=>{
cy.visit('/')
cy.wait(6000)
cy.get(loginPage.username).type(uname)
cy.get(loginPage.password).type(pword)
cy.get(loginPage.submitBtn).click()
})