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

@@ -65,9 +65,10 @@ test.describe('@smoke Home dashboard — ticker-style', () => {
// Trang có tiêu đề hợp lệ
await expect(page).toHaveTitle(/GoodGo/i);
// Heading H1 hoặc ticker bar phải render
// Market dashboard shell must render; ticker is hidden when seed data has no price movers.
const heroOrTicker = page
.locator('h1')
.locator('main')
.or(page.getByText(/GGI HCM|Top biến động giá|Khu vực xu hướng/i))
.or(page.locator('[data-testid="ticker"]'))
.or(page.locator('[class*="ticker"]'));
await expect(heroOrTicker.first()).toBeVisible({ timeout: 15_000 });