Skip to content

Commit

Permalink
test(core): fix playwright tests again... (#1697)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanceaclark authored Dec 3, 2024
1 parent 12923a5 commit 4d79963
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/components/search-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const SearchForm = ({ initialTerm = '' }: Props) => {
<div className="flex flex-col gap-8 py-16">
{initialTerm ? (
<h3 className="text-3xl font-black lg:text-4xl">
{t('noSearchResults', { term: `"${initialTerm}"` })}
{t('noSearchResults', { term: initialTerm })}
</h3>
) : (
<h3 className="text-3xl font-black lg:text-4xl">{t('searchProducts')}</h3>
Expand Down
4 changes: 2 additions & 2 deletions core/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
"products": "Products",
"categories": "Categories",
"brands": "Brands",
"noSearchResults": "Sorry, no results for {term}.",
"noSearchResults": "Sorry, no results for \"{term}\".",
"searchPlaceholder": "Search...",
"clearSearch": "Clear search",
"processing": "Processing..."
Expand All @@ -479,7 +479,7 @@
"searchProducts": "Search for products",
"searchPlaceholder": "Search...",
"search": "Search",
"noSearchResults": "Sorry, no results for {term}.",
"noSearchResults": "Sorry, no results for \"{term}\".",
"checkSpelling": "Please check the spelling or try another search."
},
"AddToCartButton": {
Expand Down
2 changes: 1 addition & 1 deletion core/tests/ui/e2e/search.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ test('Search not found', async ({ page }) => {

await searchBox.fill('flora & fauna');

await expect(page.getByText('No products matched with "flora & fauna"')).toBeVisible();
await expect(page.getByText('Sorry, no results for "flora & fauna".')).toBeVisible();
});

0 comments on commit 4d79963

Please sign in to comment.