Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions e2e/homepage.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';

test.describe('Homepage Map', () => {
test('should render the map and show location markers', async ({ page }) => {
await page.goto('/');

// Wait for the map container
const mapContainer = page.locator('div[role="region"] >> nth=0');
await expect(mapContainer).toBeVisible();

// Wait for at least one marker icon to appear
const markerIcons = page.locator('img[src$="map-pin.png"]');
await expect(markerIcons.first()).toBeVisible({ timeout: 5000 });

const count = await markerIcons.count();
expect(count).toBeGreaterThan(0);
});
});
Loading