GSA / cto-website

Tech at GSA website
https://tech.gsa.gov/
Other
45 stars 66 forks source link

pa11y should ignore iframes #864

Closed jfredrickson closed 3 months ago

jfredrickson commented 3 months ago

The DAP scripts inserts an iframe into the DOM, and that iframe is not accessible (which it doesn't have to be, since it's just for internal Google Tag Manager shenanigans). This causes some sort of apparent race condition where pa11y-ci throws an error on random pages during automated tests. Our workaround is to tell pa11y-ci to ignore iframe elements, which is okay because the site doesn't otherwise use iframes.