ember-a11y / ember-a11y-testing

A suite of accessibility tests that can be run within the Ember testing framework
MIT License
137 stars 49 forks source link

Ensures context for current URL & route middleware reporting #514

Closed drewlee closed 10 months ago

drewlee commented 10 months ago

Summary

In some circumstances, when using the middleware reporter, the a11y audit completes after test context has been torn down, resulting in test failures due to the thrown errors from using currentURL and currentRouteName. The fix ensures context exists before these two methods are called.

Testing Done