@@ -24,9 +24,35 @@ describe("Puppeteer accessibility tests for the Python Editor.", function() {
2424    test (  'Checks the editor.html page with Axe' ,  async  ( )  =>  { 
2525        // First, run some code which loads the content of the page. 
2626        const  page  =  await  browser . newPage ( ) ; 
27+         await  page . goto ( editorURL ) ; 
2728        await  new  AxePuppeteer ( page ) . analyze ( ) ; 
29+         await  expect ( page ) . toPassAxeTests ( { 
30+             disabledRules : [  'tabindex' ,  'page-has-heading-one'  ] , 
31+         } ) ; 
32+         await  page . close ( ) ; 
33+     } ) ; 
34+ 
35+   /*   test( 'Checks the Load/Save modal with Axe', async () => { 
36+         const page = await browser.newPage(); 
37+         await page.goto(editorURL); 
38+         await page.waitForSelector("#command-files"); 
39+         await page.click("#command-files"); 
40+         await new AxePuppeteer(page).include('.vex-content').analyze(); 
41+         await expect(page).toPassAxeTests({ 
42+             disabledRules: [ 'document-title', 'page-has-heading-one', 'html-has-lang', 'landmark-one-main' ], 
43+         }); 
44+         await page.close(); 
45+     }); 
46+ 
47+     test( 'Checks the Snippets modal with Axe', async () => { 
48+         const page = await browser.newPage(); 
49+         await page.goto(editorURL); 
50+         await page.waitForSelector("#command-snippet"); 
51+         await page.click("#command-snippet"); 
52+         await new AxePuppeteer(page).include('.vex-content').analyze(); 
2853        await expect(page).toPassAxeTests({ 
2954            disabledRules: [ 'document-title', 'page-has-heading-one', 'html-has-lang', 'landmark-one-main' ], 
3055        }); 
31-     }  ) ; 
56+         await page.close(); 
57+     }); */ 
3258} ) ; 
0 commit comments