-
Notifications
You must be signed in to change notification settings - Fork 64
Fix homepage search button and update snapshots #1991
Conversation
Storybook and Tailwind configuration previews: Ready Storybook: https://wordpress.github.io/openverse-frontend/_preview/1991 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: -5.93 kB (-1%) Total Size: 814 kB
ℹ️ View Unchanged
|
I think this ticket is outdated and refers to a previous version of the homepage redesign. I want to make sure about this before progressing with the development. The homepage's last version is this one and is still in discussion. |
@panchovm , this is a quick fix for the previous version of the homepage. There was a regression that we didn't catch in tests, and this PR fixes that. We haven't began working on the new homepage as its design is still under discussion. |
@@ -24,6 +24,8 @@ for (const dir of languageDirections) { | |||
test.beforeEach(async ({ page }) => { | |||
await page.goto(path) | |||
await dismissTranslationBanner(page) | |||
// TODO: Remove this after the cookie-based layout is merged. |
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.
👍
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.
The adjustments to the component logic are welcome. I can't wait for the state cookie work to be completed to prevent the flash of the icon which displays on desktop prior to the text label.
dc69531
to
b6b749e
Compare
Playwright Failure Test Results It looks like some of the Playwright tests failed. You can download the Playwright trace https://github.com/WordPress/openverse-frontend/actions/runs/3525164584 Read more about how to use this artifact here: https://github.com/WordPress/openverse-frontend/blob/main/test/playwright/README.md#debugging |
I moved the changes from here to #1992 to simplify merging and fixing PW tests faster. |
* Make the visual regression tests stricter * Add changes from Fix homepage search button and update snapshots #1991 * Revert rtl-flip on the search icon; update the single result pages (header height)
Fixes
Related to #1979 by @obulat
Description
The homepage search bar's button on screens larger than
md
was using an icon, although it should be using a text label.This PR edits the computed to fix this issue. It also simplifies the Search Button, removing redundant
$attrs
-related properties.Testing Instructions
The Search form should correctly submit if you click (or press Enter) on the search button on the homepage, the 404 page and the search page. The snapshots should match the mockups.
Checklist
Update index.md
).main
) or a parent feature branch.Developer Certificate of Origin
Developer Certificate of Origin