test(e2e): align web specs with current app routes
This commit is contained in:
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user