You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test in firefox started to fail all of a sudden, and [almost
consistently](#4881). I
couldn't figure out why the test kept failing, so after playing around
with the order of operations I figured out that the iframe is loading
axe and calling the `axe-loaded` event [_before_ mocha runs the
`before`](https://app.circleci.com/pipelines/github/dequelabs/axe-core/7369/workflows/8fa125f3-2a32-43d9-8ec9-d5a9ccd172df/jobs/79258?invite=true#step-109-11841_78)
where we look for the event. So to fix it I changed up the loading order
so the script runs first and adds the event tracking, and now the event
tracking now happens outside the `before` function and keeps track of
the logs. Then inside the `before` we see if the message has already
been fired, otherwise we listen to the event as we were doing before.
0 commit comments