-
Notifications
You must be signed in to change notification settings - Fork 63
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1793 Please note that GitHub pages takes a little time to deploy newly pushed code, if the links above don't work or you see old versions, wait 5 minutes and try again. You can check the GitHub pages deployment action list to see the current status of the deployments. |
Size Change: -1.2 kB (0%) Total Size: 802 kB
ℹ️ View Unchanged
|
6ed0a5f
to
3d97d77
Compare
Based on the high urgency of this PR, the following reviewers are being gently reminded to review this PR: @zackkrida Excluding weekend1 days, this PR was updated 2 day(s) ago. PRs labelled with high urgency are expected to be reviewed within 2 weekday(s)2. @obulat, if this PR is not ready for a review, please draft it to prevent reviewers from getting further unnecessary pings. Footnotes |
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.
LGTM! These tests inspire confidence that future issues will be caught during testing.
* - should have a Load more button. | ||
* - when button is clicked, should fetch only images. | ||
* - image view should have a Load more button. | ||
*/ |
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.
Although it is unlikely to differ in behaviour, but for completeness' sake, we should add the opposite of cases 2 and 3 where audio results are more than image.
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.
I agree, but I couldn't find an example search term for that 😆 I guess I should mock the response.
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.
LGTM
/** | ||
* Cases, check both SSR and CSR: | ||
* 1. All content view with more than 1 page of results for each media type: | ||
* - should have a Load more button. | ||
* - each individual media type view should have a Load more button. | ||
* - when button is clicked, should fetch all media types. | ||
* 2. All content view with results for images, but only 1 page of results for audio: | ||
* - should have a Load more button. | ||
* - when button is clicked, should fetch only images. | ||
* - image view should have a Load more button, but audio view should not. | ||
* 3. All content view with results for images, but no results for audio: | ||
* - should have a Load more button. | ||
* - when button is clicked, should fetch only images. | ||
* - image view should have a Load more button. | ||
*/ |
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.
Fantastic!
} | ||
} | ||
}) | ||
await goToSearchTerm(page, 'horses snort', { mode }) |
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.
horses snort
😆
Co-authored-by: Zack Krida <zackkrida@pm.me>
c8954ea
to
72c92e2
Compare
Fixes
Fixes #1788 by @obulat
Description
This PR adds the e2e tests for load more functionality. They should fail on main, but pass after #1786 is merged.
Testing Instructions
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin