Skip to content

Commit

Permalink
fix: .should() new behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueWinds committed Jan 23, 2023
1 parent 9b25e73 commit 014acd9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cypress/e2e/2-advanced-examples/connectors.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ context('Connectors', () => {
it('.invoke() - invoke a function on the current subject', () => {
// our div is hidden in our script.js
// $('.connectors-div').hide()
cy.get('.connectors-div').should('be.hidden')

// https://on.cypress.io/invoke
cy.get('.connectors-div').should('be.hidden')
// call the jquery method 'show' on the 'div.container'
.invoke('show')
.should('be.visible')
// call the jquery method 'show' on the 'div.container'
cy.get('.connectors-div').invoke('show')

cy.get('.connectors-div').should('be.visible')
})

it('.spread() - spread an array as individual args to callback function', () => {
Expand Down

0 comments on commit 014acd9

Please sign in to comment.