mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 17:03:53 +00:00
18 lines
721 B
TypeScript
18 lines
721 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('message control sends messages to screens', async ({ context }) => {
|
|
const editorPage = await context.newPage();
|
|
const featurePage = await context.newPage();
|
|
|
|
await editorPage.goto('http://localhost:4001/messagecontrol');
|
|
|
|
// stage timer message
|
|
await editorPage.getByPlaceholder('Timer').click();
|
|
await editorPage.getByPlaceholder('Timer').fill('testing stage');
|
|
await editorPage.getByRole('button', { name: /toggle timer/i }).click({ timeout: 5000 });
|
|
|
|
await featurePage.goto('http://localhost:4001/timer');
|
|
await featurePage.waitForLoadState('load', { timeout: 5000 });
|
|
await expect(featurePage.getByText('testing stage')).toBeVisible();
|
|
});
|