-
Notifications
You must be signed in to change notification settings - Fork 63
Add the new VR tests with new_header
flag turned on
#1919
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1919 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. |
32d7586
to
9693f42
Compare
Size Change: -2.13 kB (0%) Total Size: 813 kB
ℹ️ View Unchanged
|
src/pages/search/audio.vue
Outdated
@@ -69,7 +71,7 @@ export default defineComponent({ | |||
|
|||
const results = computed(() => props.resultItems.audio) | |||
|
|||
const isMinScreenMd = isMinScreen('md', { shouldPassInSSR: true }) | |||
const isMinScreenMd = inject(IsMinScreenMdKey) |
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.
Using the injected isMinScreenMd ensures that all the tailwind classes are updated to md
and up when the app is hydrated. You can see the changes in audio-results-old
snapshots with desktop UA: the layout is correct and the play button is exactly on the thumbnail instead of below it.
9693f42
to
130cc25
Compare
16c3db0
to
b73ace1
Compare
28798f1
to
b43b813
Compare
852a4e9
to
6e00f3a
Compare
Remove the Chrome search input cross in tailwind.css Extract changes from #1930 Update snapshots Fix the search button
6e00f3a
to
ce749b6
Compare
Fixes
Related to #1843 by @dhruvkb
Description
This PR was originally created to add new visual regression tests for pages and components when
new_header
flag is turned on. So, it fixes thedescribeEachMobile
breakpoint testing function to includemd
(as now it's using the mobile layout, not the desktop one) and adds the new tests.However, while working on it, I also found other changes that needed to be updated. I recently set
maxDiffPixelRatio
in Playwright config to 0.06 out of frustration with the flaky component tests, when if a component shifted 1 px down, the test was failing. When I set it back to the previous value of 0.02, I saw a lot of small changes that have crept up intomain
recently :(self-center
class to it. The problem was that the class was added to the baseVButton
component, which affected other buttons (e.g., the Copy button inside the license panel became centered) - This is fixed in Fix VButton centering #1930old
header became taller (50px instead of 48px) because the Openverse Logo changed its height to 50px, and the buttons stretched to the full height of the logo.description
class instead ofdescription-bold
.Testing Instructions
The CI should pass, and the snapshots should look well and match the designs.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin