Files
Remote-Terminal-for-MeshCore/tests/e2e/specs/health.spec.ts
Jack Kingsman 8690613bc7 Add e2e tests
2026-02-03 16:00:00 -08:00

23 lines
783 B
TypeScript

import { test, expect } from '@playwright/test';
test.describe('Health & UI basics', () => {
test('page loads and shows connected status', async ({ page }) => {
await page.goto('/');
// Status bar shows "Connected"
await expect(page.getByText('Connected')).toBeVisible();
// Sidebar is visible with key sections
await expect(page.getByRole('heading', { name: 'Conversations' })).toBeVisible();
await expect(page.getByText('Packet Feed')).toBeVisible();
await expect(page.getByText('Node Map')).toBeVisible();
});
test('sidebar shows Channels and Contacts sections', async ({ page }) => {
await page.goto('/');
await expect(page.getByText('Channels')).toBeVisible();
await expect(page.getByText('Contacts')).toBeVisible();
});
});