-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Organise a11y queries by predicate #977
Organise a11y queries by predicate #977
Conversation
89a6c26
to
966ecaa
Compare
Hi @mdjastrzebski, I'm mostly done with this PR, just got a couple questions for you:
|
966ecaa
to
527be85
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @MattAgn! This is exactly what I was looking for! 💯
There are some small missing parts like aliased exports, please check comments.
Re moving matchString
, etc to helpers: I think it's a good idea. I'd suggest helpers/machers.ts
or similar for that purpose.
Re re-organizing tests a bit: I would suggest doing it in a separate PR, in order to reduce change surface area. This PR should just split existing tests into separate files without modifications. You're welcome re-organise them a little bit more in the follow-up PR :-)
Thanks! Re moving Re re-organizing tests a bit: sure I'll do that :) |
@MattAgn let me know if you need any help with this PR. |
@mdjastrzebski sure thanks! for now I'm good, sorry I did not have much time to work on it the past 2 weeks, but I have some time this weekend. I'll let you know how it goes :) |
527be85
to
24f5259
Compare
24f5259
to
5c92cb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Weird stuff tests work fine on my local machine but timeout on CI. |
@mdjastrzebski Try increasing the timeout then |
@thymikee actually is not ma matter of timeout, I've tried to increase that but this is not the cause. Normally tests run around 1,5 minutes (other PR runs checked in Circle CI), but for this particular PR they run most of the tests (but not all) and then Jest gets stuck, no output, etc. It will wait till Circle CI no output limit and then timeout after 10 minutes or so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @MattAgn and @mdjastrzebski 🚀
@mdjastrzebski thanks for the finishing touches! :) |
Summary
This PR aims to continue solving this issue by using makeQueries for all a11yQueries.
Tasks:
Warning
Test plan
No tests should be added since the API does not change, they only need to be moved to be grouped by predicate type