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) => {
4141 win . document . dispatchEvent ( e ) ;
4242
4343 setTimeout ( ( ) => {
44- reject ( new Error ( 'automation-custom-event not received within timeout' ) ) ;
44+ resolve ( new Error ( 'automation-custom-event not received within timeout' ) ) ;
4545 } , 45000 ) ;
4646 } ) ;
4747} ;
@@ -258,6 +258,19 @@ if (overRideCommands) {
258258 } )
259259 } )
260260
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+ } )
261274}
262275
263276
You can’t perform that action at this time.
0 commit comments