activate node before clicking action buttons in tests
This commit is contained in:
parent
c73cbe2f1a
commit
793b0149b8
5 changed files with 39 additions and 13 deletions
|
|
@ -17,3 +17,8 @@ Cypress.Commands.add('loginAsUser', () => {
|
|||
Cypress.Commands.add('loginAsSecondUser', () => {
|
||||
cy.login('user2@example.com', 'password2')
|
||||
})
|
||||
|
||||
Cypress.Commands.add('activateNode', { prevSubject: 'element' }, ($li) => {
|
||||
cy.wrap($li).children('span').first().click()
|
||||
return cy.wrap($li)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue