是否可以在自定义命令中添加多个it()
函数?这些函数是我们运行的最常见任务,并且基于旅程。我希望有一个自定义命令,它将包含所有这三个it()
函数及其相关内容
it('add a new pet', function () {
cy.createPet(param1, param2)
})
it('give pet attributes', function () {
cy.setPetAttributes(param3)
})
it('set owner and delivery date for pet', function () {
cy.setOwnerAndDeliveryDate(param4, param5)
})