-
Notifications
You must be signed in to change notification settings - Fork 149
test: extract shared RTL patterns for artwork filter specs #13052
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
Conversation
ed91e2f to
ce57784
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.
Decided to keep these helpers in src/Components/ArtworkFilter instead of src/DevTools because if its limited applicability to just this part of the codebase.
| // FIXME: SWC_COMPILER_MIGRATION | ||
| it.skip("updates context on filter change", () => { |
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 like these specs were skipped in this commit — but I found that they were green and ran in tens of milliseconds, so seems fine to un-pend this. cc @damassi
| /** | ||
| * A test helper that can be used to render components that depend | ||
| * on an enclosing `ArtworkFilterContext`. |
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.
|
Going for it, so I can keep #13041 moving… |

The type of this PR is: Test
Decided to split this from #13041 (comment) so that I can get this on
mainand then include it in that PR.Description
This takes some patterns for working with artwork filters in a react-testing-library friendly way and extracts them into shared helpers.
This was introduced in the original RTL spike for the
SizeFilterspec, copied over to theKeywordFilterspec and now will be used for theArtistSeriesFilterspec as well.Seems like a good time to extract and document this shareable code.