2026-10-25 16:35:47 +01:00
|
|
|
import { expect, test } from '@playwright/test';
|
|
|
|
|
|
openvidu-dashboard: media node labels, and nothing about nodes in CE
The contract gains mediaNode on nodes, rooms and participants, stoppedAt on nodes and the
partial mediaNode index that replaces the nodeId one; the scenario's two servers are
labelled. The status reports the writer without node counts and with stoppedAt when the
server stopped, the rooms list filters by mediaNode, list items carry it, the overview
groups by it for editions and a node scope's media statistics coverage follows it.
CE renders nothing about nodes without per-node-breakdown: no nodes line, By node card,
Node select, scope selector or Node columns, not even locked; the Overview reads "Server
stopped at" for a stopped server. The generator gains --media-nodes, which node rollups
now require.
2026-11-04 12:13:58 +01:00
|
|
|
test('overview against the real backend: live tiles, stale hint, writer health, recent rooms and nothing per node', async ({
|
2026-10-25 16:35:47 +01:00
|
|
|
page
|
|
|
|
|
}) => {
|
|
|
|
|
await page.goto('/login?redirect=%2Foverview%3Ftz%3DUTC');
|
|
|
|
|
await page.getByLabel('Username').fill('admin');
|
|
|
|
|
await page.getByLabel('Password', { exact: true }).fill('e2e-admin-password');
|
|
|
|
|
await page.getByRole('button', { name: 'Sign in' }).click();
|
|
|
|
|
await expect(page).toHaveURL(/\/overview\?tz=UTC/);
|
|
|
|
|
|
|
|
|
|
const card = (title: string) =>
|
|
|
|
|
page.locator('ovd-section-card').filter({ has: page.getByRole('heading', { level: 2, name: title }) });
|
|
|
|
|
|
|
|
|
|
await expect(page.getByRole('region', { name: 'Live' })).toContainText('Active rooms 2');
|
|
|
|
|
// The stale notice needs two responses in a row reporting stale entities.
|
|
|
|
|
await page.getByRole('button', { name: 'Refresh now' }).click();
|
|
|
|
|
await expect(page.getByRole('alert').filter({ hasText: 'may be stale' })).toContainText('1 active room');
|
|
|
|
|
await expect(page.locator('.page-header ovd-live-chip')).toHaveText('LIVE');
|
|
|
|
|
await expect(card('Data pipeline')).toContainText(/Last batch at \d\d:\d\d:\d\d/);
|
openvidu-dashboard: media node labels, and nothing about nodes in CE
The contract gains mediaNode on nodes, rooms and participants, stoppedAt on nodes and the
partial mediaNode index that replaces the nodeId one; the scenario's two servers are
labelled. The status reports the writer without node counts and with stoppedAt when the
server stopped, the rooms list filters by mediaNode, list items carry it, the overview
groups by it for editions and a node scope's media statistics coverage follows it.
CE renders nothing about nodes without per-node-breakdown: no nodes line, By node card,
Node select, scope selector or Node columns, not even locked; the Overview reads "Server
stopped at" for a stopped server. The generator gains --media-nodes, which node rollups
now require.
2026-11-04 12:13:58 +01:00
|
|
|
await expect(card('Data pipeline')).not.toContainText('node');
|
2026-10-25 16:35:47 +01:00
|
|
|
await expect(card('Today (UTC, since 00:00)')).toContainText('3');
|
|
|
|
|
await expect(card('Recent rooms').getByRole('row', { name: /Webinar-Q4/ })).toBeVisible();
|
|
|
|
|
await expect(card('Recent rooms').locator('ovd-status-badge mat-icon.stale')).toHaveCount(1);
|
openvidu-dashboard: media node labels, and nothing about nodes in CE
The contract gains mediaNode on nodes, rooms and participants, stoppedAt on nodes and the
partial mediaNode index that replaces the nodeId one; the scenario's two servers are
labelled. The status reports the writer without node counts and with stoppedAt when the
server stopped, the rooms list filters by mediaNode, list items carry it, the overview
groups by it for editions and a node scope's media statistics coverage follows it.
CE renders nothing about nodes without per-node-breakdown: no nodes line, By node card,
Node select, scope selector or Node columns, not even locked; the Overview reads "Server
stopped at" for a stopped server. The generator gains --media-nodes, which node rollups
now require.
2026-11-04 12:13:58 +01:00
|
|
|
await expect(card('By node')).toHaveCount(0);
|
2026-10-25 16:35:47 +01:00
|
|
|
});
|