@@ -21,6 +21,9 @@ describe('Accessibility Tests', () => {
2121
2222 console . log ( `✓ ${ tab . label } tab is accessible` ) ;
2323 }
24+
25+ // Run axe scan on tab bar accessibility
26+ await utils . scanScreen ( 'Tab Bar Accessibility' , [ 'accessibility' , 'tab-labels' ] ) ;
2427 } ) ;
2528
2629 it ( 'should verify all tabs are clickable' , async ( ) => {
@@ -41,6 +44,9 @@ describe('Accessibility Tests', () => {
4144 }
4245
4346 console . log ( '✓ All tabs are clickable' ) ;
47+
48+ // Run axe scan on tab clickability
49+ await utils . scanScreen ( 'Tabs Clickable' , [ 'accessibility' , 'interactive' ] ) ;
4450 } ) ;
4551
4652 it ( 'should verify screen navigation is accessible' , async ( ) => {
@@ -61,6 +67,9 @@ describe('Accessibility Tests', () => {
6167 await utils . takeScreenshot ( `accessibility-${ test . name . toLowerCase ( ) } ` ) ;
6268
6369 console . log ( `✓ ${ test . name } screen accessible and screenshot captured` ) ;
70+
71+ // Run axe scan on each navigated screen
72+ await utils . scanScreen ( `${ test . name } Navigation` , [ 'accessibility' , test . name . toLowerCase ( ) , 'navigation' ] ) ;
6473 }
6574 } ) ;
6675
@@ -77,5 +86,45 @@ describe('Accessibility Tests', () => {
7786 expect ( size . height ) . to . be . at . least ( 44 ) ;
7887
7988 console . log ( `✓ Tab touch targets meet minimum size requirements (${ size . width } x${ size . height } )` ) ;
89+
90+ // Run axe scan on touch targets
91+ await utils . scanScreen ( 'Touch Targets' , [ 'accessibility' , 'touch-targets' , 'sizing' ] ) ;
92+ } ) ;
93+
94+ it ( 'should run comprehensive accessibility scan on all screens' , async ( ) => {
95+ const screens = [
96+ { tab : selectors . homeTab , name : 'Home' } ,
97+ { tab : selectors . catalogTab , name : 'Catalog' } ,
98+ { tab : selectors . cartTab , name : 'Cart' } ,
99+ { tab : selectors . profileTab , name : 'Profile' }
100+ ] ;
101+
102+ console . log ( '🔍 Running comprehensive accessibility scan on all screens...' ) ;
103+
104+ for ( const screen of screens ) {
105+ // Navigate to screen
106+ const tab = await $ ( screen . tab ) ;
107+ await utils . tapWithRetry ( tab ) ;
108+ await utils . wait ( 1500 ) ;
109+
110+ console . log ( `Scanning ${ screen . name } screen...` ) ;
111+
112+ // Run comprehensive axe scan
113+ const scanResult = await utils . runAxeScan (
114+ `${ screen . name } Comprehensive Scan` ,
115+ [ 'comprehensive' , 'full-suite' , screen . name . toLowerCase ( ) , 'wcag' ]
116+ ) ;
117+
118+ if ( scanResult ) {
119+ console . log ( `✓ ${ screen . name } scan completed` ) ;
120+ if ( scanResult . violations && scanResult . violations . length > 0 ) {
121+ console . log ( ` ⚠ Found ${ scanResult . violations . length } violation(s) on ${ screen . name } screen` ) ;
122+ } else {
123+ console . log ( ` ✓ No violations found on ${ screen . name } screen` ) ;
124+ }
125+ }
126+ }
127+
128+ console . log ( '✓ Comprehensive accessibility scan completed for all screens' ) ;
80129 } ) ;
81- } ) ;
130+ } ) ;
0 commit comments