File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
packages/reporter/cypress/e2e Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,19 @@ describe('header', () => {
171171 cy . get ( '.restart' ) . should ( 'not.exist' )
172172 } )
173173
174- it ( 'does not display next button' , ( ) => {
175- cy . get ( '.next' ) . should ( 'not.exist' )
174+ it ( 'displays the next button but disabled' , ( ) => {
175+ cy . get ( '.next' ) . should ( 'be.visible' ) . and ( 'be.disabled' )
176+ } )
177+
178+ it ( 'shows "Step (not available)" tooltip when next button is disabled' , ( ) => {
179+ cy . get ( '.next' ) . trigger ( 'mouseover' , { force : true } )
180+ cy . get ( '.cy-tooltip' ) . should ( 'have.text' , 'Step (not available)' )
181+ } )
182+
183+ it ( 'does not emit runner:next when disabled next button is clicked' , ( ) => {
184+ cy . spy ( runner , 'emit' )
185+ cy . get ( '.next' ) . click ( { force : true } )
186+ cy . wrap ( runner . emit ) . should ( 'not.be.calledWith' , 'runner:next' )
176187 } )
177188 } )
178189 } )
You can’t perform that action at this time.
0 commit comments