-
Notifications
You must be signed in to change notification settings - Fork 38
Axe Randomly Fails to Inject on IE Selenium Grid 3.14.0 #318
Comments
Any updates? |
How to reproduce the issue in-house and then further verify changes? |
@nramamurth You should sync up with @benbcai. He spent some time working through this, but I am unsure of the full extent to what he discovered. |
@nramamurth @emilyrohrbough When I was investigating this what I discovered was that on IE Selenium Grid 3.14 that axe would fail to inject on any page that has a terra-icon. I used these test examples for troubleshooting and what I noticed was the error would occur on any of these test pages that renders a list-item with a chevron. If I removed the chevron, then it would pass. To rule out that this is not related to terra-list, I created a test page with just a chevron icon (without list-item or list), axe would still fail. I then tried rendering a different icon and it would still fail. From what I can tell up to this point, axe would fail on a page that has any terra-icon.. We lock axe-core to 3.2.2 so I wouldn't be any recent changes in axe-core that is causing this. Since Selenium Grid was bumped from 2.xx to 3.14, perhaps this issue could have existed not only in 3.14 but older versions of 3.xx. I was going to build a box with older versions of the grid to pinpoint which specific 3.x version introduced this to see if that would lead us to new findings but my priorities have shifted and haven't done that. I will continue the investigation when I can get back to this. |
Any updates? |
When the error occurs on a page that contains only an icon, the following is the Error object that is returned in the error result from executing axe.run.
The error doesn't provide any information on which object is undefined. I was able to execute other axe APIs and the expected results are returned but fails when executing the run API regardless of the WCAG standards ( |
It turns out that the cause of this issue is dequelabs/axe-core#525. For any page in IE that has an SVG element (i.e. terra-icon), accessing This error can be avoided/skipped by changing dequelabs/axe-core#525 is scheduled to be fixed either in axe-core 3.4 or 3.5 but I don't think we want to wait that long. We could make a contribution to get this fixed ASAP. |
@benbcai nice find!! |
Contribution to axe-core to fix this: dequelabs/axe-core#1820 |
axe-core-3.4.0 with the fix is expected to be released on or around 10/21. Once 3.4.0 is released, terra-toolkit will be updated to pull in this version. |
axe-core-3.4.0 was released this morning. This issue should be resolved. |
Although the underlying issue has been resolved in axe-core 3.4.0, terra-toolkit currently is unable to upgrade axe-core from 3.2.2 to 3.4.0 because 3.4.0 introduces various other accessibility violations in Terra that need to be investigate and addressed. For that reason, this issue is closed in favor of #343, which will address the impact of upgrading 3.4.0. |
Bug Report
Description:
This is an issue related to Selenium 3.14.0 IE driver and the axe command.
When injecting axe on the test page, the axe command crashing the current selenium session. This is not an issue for all test urls, but for certain test urls; although these urls seem random, errors can be seen consistently on these urls.
Details:
When calling,
Terra.it.isAccessibly()
the terra axe command is leveraged. The axe-commandaxe-core
exists on the dom and will synchronous inject it on the page if it does not exist.axe-core
injection failed, axe is not available to runaxe-core
will call this callback when it finishesWhat needs to be done:
Environment
@ Mentions
@ryanthemanuel @mjhenkes
The text was updated successfully, but these errors were encountered: