Adds a teeny timeout to account for elm re render

This commit is contained in:
Tessa Kelly 2022-06-27 11:12:19 -07:00
parent 20893bd8ec
commit f480aef1a4
3 changed files with 2357 additions and 2909 deletions

5249
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,18 +26,18 @@
},
"homepage": "https://github.com/NoRedInk/NoRedInk-ui#readme",
"devDependencies": {
"@percy/cli": "^1.0.0-beta.73",
"@percy/puppeteer": "^2.0.0",
"@percy/cli": "^1.4.0",
"@percy/puppeteer": "^2.0.2",
"prettier": "^2.7.1",
"puppeteer": "^15.1.1",
"browserify": "16.2.3",
"prettier": "^2.6.2",
"puppeteer": "^3.3.0",
"request": "^2.88.0"
"request": "^2.88.2"
},
"dependencies": {
"@axe-core/puppeteer": "^4.4.2",
"@axe-core/puppeteer": "^4.4.3",
"axe-core": "3.5.6",
"expect": "^27.4.6",
"expect": "^27.5.1",
"http-server": "^14.1.1",
"mocha": "^9.2.0"
"mocha": "^9.2.2"
}
}

View File

@ -80,6 +80,7 @@ describe("UI tests", function () {
for (const optionEl of options) {
const option = await page.evaluate((el) => el.innerText, optionEl);
select.select(option);
await page.waitForTimeout(1);
await percySnapshot(page, `${name} - ${option}`);
axe = await new AxePuppeteer(page)