mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 10:23:54 +00:00
32b5ab0574
* fix: fetch in offline environments (#295) * Add arm platforms to docker build (#297) * add arm platforms to docker build --------- Co-authored-by: Fabian Posenau <fabian@fphome.de> * fix: docker build (#298) Co-authored-by: Fabian Posenau <fabian@fphome.de> * Timer: fix too many renders error when using ?progress (#305) * Timer: fix too many renders error when using ?progress * version bump (#314) * style: small tweaks * fix: prevent actions in roll mode * chore: update external assets * style: show shortcuts in quick blocks * refactor: revert optimisations on callbacks * fun: industry dictionary * style: indicators for event features --------- Co-authored-by: Fabian Posenau <fabian.p99@gmx.de> Co-authored-by: Fabian Posenau <fabian@fphome.de> Co-authored-by: Marks Polakovs <github@markspolakovs.me>
42 lines
1.9 KiB
TypeScript
42 lines
1.9 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('test', 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('Shown in stage timer').click();
|
|
await expect(editorPage.getByPlaceholder('Shown in stage timer')).toBeEnabled();
|
|
|
|
await editorPage.getByPlaceholder('Shown in stage timer').fill('testing stage');
|
|
await editorPage.getByRole('button', { name: /toggle timer screen message/i }).click({ timeout: 5000 });
|
|
|
|
await featurePage.goto('http://localhost:4001/timer');
|
|
await featurePage.getByText('testing stage').click();
|
|
|
|
// public screen message
|
|
await editorPage.getByPlaceholder('Shown in public and backstage screens').click();
|
|
await editorPage.getByPlaceholder('Shown in public and backstage screens').fill('testing public');
|
|
await editorPage.getByRole('button', { name: 'Toggle Public / Backstage screen message' }).click();
|
|
|
|
await featurePage.goto('http://localhost:4001/public');
|
|
await featurePage.getByText('testing public').click({ timeout: 10000 });
|
|
|
|
// lower third message
|
|
await editorPage.getByPlaceholder('Shown in lower third').click();
|
|
await editorPage.getByPlaceholder('Shown in lower third').fill('testing lower');
|
|
await editorPage.getByRole('button', { name: /toggle lower third message/i }).click();
|
|
await featurePage.goto('http://localhost:4001/lower');
|
|
// increase the timeout to accommodate animation
|
|
await featurePage.getByText('testing lower').click({ timeout: 10000 });
|
|
|
|
// on air state
|
|
await editorPage.getByTestId('toggle on air').click();
|
|
await featurePage.goto('http://localhost:4001/studio');
|
|
await featurePage.getByText('ON AIR').click();
|
|
const onAirActive = await featurePage.locator('data-testid=on-air-enabled');
|
|
await expect(onAirActive).toHaveText(/on air/i);
|
|
});
|