test(e2e): align web specs with current app routes
This commit is contained in:
@@ -4,8 +4,8 @@ test.describe('Homepage', () => {
|
||||
test('loads and displays hero content', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
|
||||
// The hero section renders "Find your perfect property" per i18n
|
||||
await expect(page.locator('h1').first()).toBeVisible();
|
||||
await expect(page.locator('main')).toBeVisible();
|
||||
await expect(page.getByText(/GGI HCM|Top biến động giá|Khu vực xu hướng/i).first()).toBeVisible();
|
||||
});
|
||||
|
||||
test('has correct page title', async ({ page }) => {
|
||||
@@ -24,7 +24,9 @@ test.describe('Homepage', () => {
|
||||
text.includes('mapbox') ||
|
||||
text.includes('NEXT_PUBLIC_MAPBOX_TOKEN') ||
|
||||
text.includes('hydration') ||
|
||||
text.includes('Content Security Policy')
|
||||
text.includes('Content Security Policy') ||
|
||||
text.includes('401') ||
|
||||
text.includes('Unauthorized')
|
||||
) {
|
||||
return;
|
||||
}
|
||||
@@ -45,7 +47,6 @@ test.describe('Homepage', () => {
|
||||
const main = page.locator('main');
|
||||
await expect(main).toBeVisible();
|
||||
|
||||
const h1 = page.locator('h1');
|
||||
await expect(h1).toBeVisible();
|
||||
await expect(page.getByText(/GGI HCM|Top biến động giá|Khu vực xu hướng/i).first()).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user