-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbm_test.js
25 lines (20 loc) · 985 Bytes
/
bm_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { setBrowser } = require("@codeceptjs/configure");
const AxeDevtoolsBuilder = require("@axe-devtools/playwright").default;
const AxeDevtoolsReporter = require("@axe-devtools/reporter").default;
Feature('Checking for a11y issues');
let i=1
const bm = "OrgName"
const url= ["https://broken-workshop.dequelabs.com/", "https://dequeuniversity.com/demo/dream", "http://abcdcomputech.dequecloud.com/"]
for (let i = 0; i < url.length; i++) {
Scenario('Checking url1 for a11y issues',async ({ I }) => {
await I.checkHomepageForA11yissues(url[i], bm+(i+1), i+1)
await I.createReports()
console.log('The url being sent is'+url[i])
const delay = ms => new Promise(resolve => setTimeout(resolve, ms))
await delay(10000) /// waiting 1 second.
await I.pushJsonToAxeReports(url[i])
await delay(10000) /// waiting 1 second.
await I.deleteTempaxeDashReportsDir()
await delay(10000) /// waiting 1 second.
});
}