File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
cypress/integration/examples Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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} )
You can’t perform that action at this time.
0 commit comments