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