Skip to content

Commit

Permalink
move @babel to devDependenices
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-mark committed Nov 15, 2019
1 parent a11ce1e commit 703ae85
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
2 changes: 1 addition & 1 deletion editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h2><i class="fa fa-unlock-alt"></i> <strong>{{ title }}</strong></h2>
<p>{{ hint }}</p>
<p><button id="button-decrypt-link">{{ button }}</button></p>
</script>
<main id="main" role="main" class="vbox">
<main id="main" role="main" class="vbox main">
<div id="toolbox" class="hbox">
<div id="commands" class="hbox">
<a href="#" class="roundbutton action" id="command-download"
Expand Down
6 changes: 3 additions & 3 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"test:coverage": "npm t -- --coverage",
"test:ci": "npm t -- --ci --colors"
},
"dependencies": {
"@babel/runtime": "^7.7.2"
},
"dependencies": {},

"devDependencies": {
"@wordpress/jest-puppeteer-axe": "^1.3.0",
"axe-puppeteer": "1.0.0",
"@babel/runtime": "^7.7.2",
"jest": "^24.9.0",
"node-forge": "0.8.2",
"node-static": "^0.7.11",
Expand Down
32 changes: 30 additions & 2 deletions tests/spec/puppeteer-axe-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,37 @@ describe("Puppeteer accessibility tests for the Python Editor.", function() {
test( 'Checks the editor.html page with Axe', async () => {
// First, run some code which loads the content of the page.
const page = await browser.newPage();
await page.goto(editorURL);
await new AxePuppeteer(page).analyze();
await expect(page).toPassAxeTests({
disabledRules: [ 'document-title', 'page-has-heading-one', 'html-has-lang', 'landmark-one-main' ],
disabledRules: [ 'tabindex', 'page-has-heading-one' ],
});
} );
await page.close();
});

test( 'Checks the Load/Save modal with Axe', async () => {
const page = await browser.newPage();
await page.goto(editorURL);
await page.waitForSelector("#command-files");
await page.click("#command-files");
await new AxePuppeteer(page).analyze();
await expect(page).toPassAxeTests({
exclude: '.main',
disabledRules: [ 'page-has-heading-one' ],
});
await page.close();
});

test( 'Checks the Load/Save modal with Axe', async () => {
const page = await browser.newPage();
await page.goto(editorURL);
await page.waitForSelector("#command-snippet");
await page.click("#command-snippet");
await new AxePuppeteer(page).analyze();
await expect(page).toPassAxeTests({
exclude: '.main',
disabledRules: [ 'page-has-heading-one' ],
});
await page.close();
});
});

0 comments on commit 703ae85

Please sign in to comment.