@@ -17,37 +17,25 @@ export function beforeEach(taskResult, backend) {
1717 const spec = Cypress . mocha . getRunner ( ) . suite . ctx . currentTest . parent . title ;
1818 const testName = Cypress . mocha . getRunner ( ) . suite . ctx . currentTest . title ;
1919
20- cy . task ( 'log' , `[beforeEach] backend=${ backend } spec="${ spec } " test="${ testName } "` ) ;
21- cy . task ( 'log' , `[beforeEach] mockResponses=${ String ( taskResult . data . mockResponses ) } ` ) ;
22-
2320 cy . task ( 'setupBackendTest' , {
2421 backend,
2522 ...taskResult . data ,
2623 spec,
2724 testName,
28- } ) . then ( ( ) => {
29- cy . task ( 'log' , '[beforeEach] setupBackendTest completed' ) ;
3025 } ) ;
3126
3227 if ( taskResult . data . mockResponses ) {
3328 const fixture = `${ spec } __${ testName } .json` ;
34- cy . task ( 'log' , `[beforeEach] Loading fixture: "${ fixture } "` ) ;
35- cy . stubFetch ( { fixture } ) . then ( ( ) => {
36- cy . task ( 'log' , '[beforeEach] stubFetch completed' ) ;
37- } ) ;
38- } else {
39- cy . task ( 'log' , '[beforeEach] Skipping fixture load - mockResponses is false/undefined' ) ;
29+ console . log ( 'loading fixture:' , fixture ) ;
30+ cy . stubFetch ( { fixture } ) ;
4031 }
4132
4233 // cy.clock(0, ['Date']) was hanging git-gateway tests after page load
4334 // Hypothesis: freezing time to 0 breaks app initialization during cy.visit()
4435 // Temporary fix: skip cy.clock for git-gateway, use default clock for others
4536 if ( backend !== 'git-gateway' ) {
46- cy . task ( 'log' , '[beforeEach] Setting clock to epoch 0 for non-git-gateway' ) ;
4737 return cy . clock ( 0 , [ 'Date' ] ) ;
4838 }
49-
50- cy . task ( 'log' , '[beforeEach] Skipped clock for git-gateway' ) ;
5139}
5240
5341export function afterEach ( taskResult , backend ) {
0 commit comments