Skip to content

Commit 25e9f3d

Browse files
committed
chore: add expect messages and take screenshot
1 parent 7a9630b commit 25e9f3d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

cypress/integration/examples/connectors.spec.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ context('Connectors', () => {
4646

4747
it('.then() - invoke a callback function with the current subject', () => {
4848
// https://on.cypress.io/then
49-
cy.get('.connectors-list>li').then(($lis) => {
50-
expect($lis).to.have.length(3)
51-
expect($lis.eq(0)).to.contain('Walk the dog')
52-
expect($lis.eq(1)).to.contain('Feed the cat')
53-
expect($lis.eq(2)).to.contain('Write JavaScript')
54-
})
49+
cy.get('.connectors-list > li')
50+
.then(($lis) => {
51+
expect($lis, '3 items').to.have.length(3)
52+
expect($lis.eq(0), 'first item').to.contain('Walk the dog')
53+
expect($lis.eq(1), 'second item').to.contain('Feed the cat')
54+
expect($lis.eq(2), 'third item').to.contain('Write JavaScript')
55+
})
5556
})
5657
})

0 commit comments

Comments
 (0)