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.
The DAP scripts inserts an
iframe
into the DOM, and thatiframe
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 wherepa11y-ci
throws an error on random pages during automated tests. Our workaround is to tellpa11y-ci
to ignoreiframe
elements, which is okay because the site doesn't otherwise useiframe
s.