mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-07-31 05:53:04 +02:00
17 lines
699 B
TypeScript
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();
|
|
});
|
|
});
|