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

@@ -4,7 +4,8 @@ test.describe('Navigation and Routing', () => {
test('homepage loads and has navigation links', async ({ page }) => {
await page.goto('/');
await expect(page.getByRole('heading', { level: 1 })).toBeVisible();
await expect(page.getByRole('main')).toBeVisible();
await expect(page.getByText(/GGI HCM|Top biến động giá|Khu vực xu hướng/i).first()).toBeVisible();
// Header navigation should have links
const nav = page.locator('header nav, header');
await expect(nav.first()).toBeVisible();