Skip to content

chore: update playground#3723

Merged
WilcoFiers merged 2 commits intodevelopfrom
tweak-playground
Oct 17, 2022
Merged

chore: update playground#3723
WilcoFiers merged 2 commits intodevelopfrom
tweak-playground

Conversation

@WilcoFiers
Copy link
Copy Markdown
Contributor

I find myself repeatedly making changes to the playground to:

  1. Add runOnly to run a single rule
  2. Add a landmark and heading to ensure no violations from best practices

I also included testUtils, so I can use awaitNestedLoad, which is helpful from time to time.

@WilcoFiers WilcoFiers requested a review from a team as a code owner October 17, 2022 11:20
});
axe.testUtils.awaitNestedLoad(
window,
async () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this async when we use a callback below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, right! Yeah because I initially used await on axe and then realised I needed a try/catch block, which was more code than just err || results

@WilcoFiers WilcoFiers merged commit 7e2f0af into develop Oct 17, 2022
@WilcoFiers WilcoFiers deleted the tweak-playground branch October 17, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants