From 39156fc1079898e687b1e7661762ea32c40b399d Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Mon, 4 May 2026 20:11:09 +0700 Subject: [PATCH] test(e2e): align web specs with current app routes --- apps/web/components/design-system/footer.tsx | 10 +- apps/web/components/search/search-results.tsx | 1 + e2e/a11y/scorecard.spec.ts | 4 +- e2e/web/admin-dashboard.spec.ts | 31 +-- e2e/web/admin-kyc.spec.ts | 17 +- e2e/web/admin-moderation.spec.ts | 21 +- e2e/web/admin-users.spec.ts | 17 +- e2e/web/agents.spec.ts | 146 ++++--------- e2e/web/analytics.spec.ts | 20 +- e2e/web/create-listing.spec.ts | 20 +- e2e/web/dashboard.spec.ts | 56 ++--- e2e/web/homepage.spec.ts | 11 +- e2e/web/listing-detail.spec.ts | 192 ++++++------------ e2e/web/listing-inquiry-modal.spec.ts | 121 +++-------- e2e/web/navigation.spec.ts | 3 +- e2e/web/responsive.spec.ts | 10 +- e2e/web/search.spec.ts | 5 +- e2e/web/smoke.spec.ts | 7 +- e2e/web/support/auth.ts | 59 ++++++ e2e/web/trading-floor-smoke.spec.ts | 5 +- e2e/web/valuation.spec.ts | 36 ++-- 21 files changed, 334 insertions(+), 458 deletions(-) create mode 100644 e2e/web/support/auth.ts diff --git a/apps/web/components/design-system/footer.tsx b/apps/web/components/design-system/footer.tsx index 328d6c8..884041d 100644 --- a/apps/web/components/design-system/footer.tsx +++ b/apps/web/components/design-system/footer.tsx @@ -51,6 +51,12 @@ const SOCIAL_ICON: Record = { youtube: ExternalLink, }; +const SOCIAL_LABEL: Record = { + 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 &&