test(e2e): align web specs with current app routes

This commit is contained in:
Ho Ngoc Hai
2026-05-04 20:11:09 +07:00
parent f112045826
commit 39156fc107
21 changed files with 334 additions and 458 deletions

View File

@@ -51,6 +51,12 @@ const SOCIAL_ICON: Record<string, React.ElementType> = {
youtube: ExternalLink,
};
const SOCIAL_LABEL: Record<string, string> = {
facebook: 'GoodGo Facebook',
instagram: 'GoodGo Instagram',
youtube: 'GoodGo YouTube',
};
/* -------------------------------------------------------------------------- */
/* Component */
/* -------------------------------------------------------------------------- */
@@ -123,8 +129,10 @@ export function Footer({
target="_blank"
rel="noopener noreferrer"
className="inline-flex h-9 w-9 items-center justify-center rounded-md border border-border text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground"
aria-label={SOCIAL_LABEL[s.platform] ?? s.platform}
title={SOCIAL_LABEL[s.platform] ?? s.platform}
>
{Icon && <Icon className="h-4 w-4" />}
{Icon && <Icon className="h-4 w-4" aria-hidden="true" />}
</a>
);
})}

View File

@@ -90,6 +90,7 @@ function SearchResultsInner({
value={sort}
onChange={(e) => onSortChange(e.target.value)}
className="w-full sm:w-48"
aria-label="Sắp xếp kết quả tìm kiếm"
>
<option value="">Mới nhất</option>
<option value="price_asc">Giá: Thấp đến cao</option>