originated专题

Cypress 报错 The following error originated from your application code, not from Cypress.

commands.js 创建自定义命令login Cypress.Commands.add('login',(username,password)=>{cy.get('#account').type(username)cy.get('#password').type(password)cy.get('.sub').click()}) testAddGoods.js中调用login desc