@@ -176,25 +176,12 @@ describe('Careful with negative assertions', { retries: 2 }, () => {
176176 cy . get ( '.loading' ) . should ( 'not.be.visible' )
177177 } )
178178
179- // NOTE: https://github.com/cypress-io/cypress/issues/14511
180- it . skip ( 'slows down the network response (does not work)' , ( ) => {
179+ it ( 'slows down the network response' , ( ) => {
181180 cy . intercept ( '/todos' , {
182181 body : [ ] ,
183- delayMs : 2000
182+ delayMs : 1000
184183 } )
185- cy . visit ( '/?delay=3000' )
186- // first, make sure the loading indicator shows up (positive assertion)
187- cy . get ( '.loading' ) . should ( 'be.visible' )
188- // then assert it goes away (negative assertion)
189- cy . get ( '.loading' ) . should ( 'not.be.visible' )
190- } )
191-
192- it ( 'slows down the network response (works)' , ( ) => {
193- cy . intercept ( '/todos' , {
194- body : [ ] ,
195- delayMs : 5000
196- } )
197- cy . visit ( '/?delay=3000' )
184+ cy . visit ( '/?delay=1000' )
198185 // first, make sure the loading indicator shows up (positive assertion)
199186 cy . get ( '.loading' ) . should ( 'be.visible' )
200187 // then assert it goes away (negative assertion)
@@ -205,10 +192,10 @@ describe('Careful with negative assertions', { retries: 2 }, () => {
205192 cy . intercept ( '/todos' , req => {
206193 req . reply ( {
207194 body : [ ] ,
208- delayMs : 2000
195+ delayMs : 1000
209196 } )
210197 } )
211- cy . visit ( '/?delay=3000 ' )
198+ cy . visit ( '/?delay=1000 ' )
212199 // first, make sure the loading indicator shows up (positive assertion)
213200 cy . get ( '.loading' ) . should ( 'be.visible' )
214201 // then assert it goes away (negative assertion)
0 commit comments