We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9084049 commit 4acc27cCopy full SHA for 4acc27c
e2e/homepage.spec.ts
@@ -0,0 +1,18 @@
1
+import { test, expect } from '@playwright/test';
2
+
3
+test.describe('Homepage Map', () => {
4
+ test('should render the map and show location markers', async ({ page }) => {
5
+ await page.goto('/');
6
7
+ // Wait for the map container
8
+ const mapContainer = page.locator('div[role="region"] >> nth=0');
9
+ await expect(mapContainer).toBeVisible();
10
11
+ // Wait for at least one marker icon to appear
12
+ const markerIcons = page.locator('img[src$="map-pin.png"]');
13
+ await expect(markerIcons.first()).toBeVisible({ timeout: 5000 });
14
15
+ const count = await markerIcons.count();
16
+ expect(count).toBeGreaterThan(0);
17
+ });
18
+});
0 commit comments