Files
Remote-Terminal-for-MeshCore/tests/e2e/specs/node-map.spec.ts
T
Jack Kingsman 8af7622bb0 Fix e2e tests
2026-07-25 21:38:58 -07:00

17 lines
699 B
TypeScript

import { test, expect } from '@playwright/test';
test.describe('Node Map page', () => {
test('node map page loads', async ({ page }) => {
await page.goto('/#map');
// Verify heading (also appears in sidebar, so scope to main)
await expect(page.getByRole('main').getByText('Node Map')).toBeVisible({ timeout: 10_000 });
// Verify legend elements. Scoped to the legend group: the "Since" filter
// chips carry the same bucket names, so an unscoped text match is ambiguous.
const legend = page.getByRole('group', { name: 'Marker recency legend' });
await expect(legend.getByText('<1h')).toBeVisible();
await expect(legend.getByText('<1d')).toBeVisible();
});
});