File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const setScanConfig = (win, payload) => {
41
41
win . document . dispatchEvent ( e ) ;
42
42
43
43
setTimeout ( ( ) => {
44
- reject ( new Error ( 'automation-custom-event not received within timeout' ) ) ;
44
+ resolve ( new Error ( 'automation-custom-event not received within timeout' ) ) ;
45
45
} , 45000 ) ;
46
46
} ) ;
47
47
} ;
@@ -258,6 +258,19 @@ if (overRideCommands) {
258
258
} )
259
259
} )
260
260
261
+ afterEach ( ( ) => {
262
+ console . log ( "after each hook" )
263
+ let isAccessibilityLoaded = Cypress . env ( "ACCESSIBILITY" ) || false ;
264
+ if ( ! isAccessibilityLoaded ) {
265
+ console . log ( 'log' , "accessibility not enabled " + isAccessibilityLoaded ) ;
266
+ return ;
267
+ }
268
+ cy . window ( ) . then ( ( win ) => {
269
+ processAccessibilityReport ( win ) ;
270
+ } )
271
+
272
+
273
+ } )
261
274
}
262
275
263
276
You can’t perform that action at this time.
0 commit comments