Timer/blinking and blackout buttons (#406)

*feat: timer blink

*feat: blackout

---------

Co-authored-by: Fabian Posenau <fabian@fphome.de>
Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com>
This commit is contained in:
Fabian Posenau
2023-06-04 21:25:56 +02:00
committed by GitHub
parent 07737cc8b3
commit 5cb8020ab9
24 changed files with 196 additions and 66 deletions
+9 -9
View File
@@ -7,11 +7,11 @@ test.describe('pages routes are available', () => {
await page.goto('http://localhost:4001/editor');
await expect(page).toHaveTitle(/ontime/);
await page.getByTestId('event-editor').click();
await page.getByTestId('panel-rundown').click();
await page.getByTestId('panel-timer-control').click();
await page.getByTestId('panel-messages-control').click();
await page.getByTestId('panel-info').click();
await expect(page.getByTestId('event-editor')).toBeVisible()
await expect(page.getByTestId('panel-rundown')).toBeVisible()
await expect(page.getByTestId('panel-timer-control')).toBeVisible()
await expect(page.getByTestId('panel-messages-control')).toBeVisible()
await expect(page.getByTestId('panel-info')).toBeVisible()
});
test('cuesheet', async ({ page }) => {
await page.goto('http://localhost:4001/cuesheet');
@@ -24,19 +24,19 @@ test.describe('pages routes are available', () => {
test.describe('detached views', () => {
test('rundown', async ({ page }) => {
await page.goto('http://localhost:4001/rundown');
await page.getByTestId('panel-rundown').click();
await expect(page.getByTestId('panel-rundown')).toBeVisible()
});
test('timer control', async ({ page }) => {
await page.goto('http://localhost:4001/timercontrol');
await page.getByTestId('panel-timer-control').click();
await expect(page.getByTestId('panel-timer-control')).toBeVisible()
});
test('message control', async ({ page }) => {
await page.goto('http://localhost:4001/messagecontrol');
await page.getByTestId('panel-messages-control').click();
await expect(page.getByTestId('panel-messages-control')).toBeVisible()
});
test('info', async ({ page }) => {
await page.goto('http://localhost:4001/info');
await page.getByTestId('panel-info').click();
await expect(page.getByTestId('panel-info')).toBeVisible()
});
});
});
+15 -13
View File
@@ -6,34 +6,36 @@ test('test', async ({ context }) => {
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 });
await featurePage.waitForLoadState('load', { timeout: 5000 });
await featurePage.getByText('testing public').click({ timeout: 5000 });
// 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 });
await featurePage.waitForLoadState('load', { timeout: 5000 });
await featurePage.getByText('testing lower').click({ timeout: 5000 });
// stage timer message
await editorPage.getByPlaceholder('Shown in stage timer').click();
await editorPage.getByPlaceholder('Shown in stage timer').fill('testing stage');
await editorPage.getByRole('button', { name: /toggle timer message/i }).click({ timeout: 5000 });
await featurePage.goto('http://localhost:4001/timer');
await featurePage.waitForLoadState('load', { timeout: 5000 });
await featurePage.getByText('testing stage').click();
// 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');
+3 -3
View File
@@ -5,7 +5,7 @@
"subtitle": "",
"presenter": "",
"note": "",
"endAction": "continue",
"endAction": "none",
"timerType": "count-down",
"timeStart": 32400000,
"timeEnd": 36000000,
@@ -38,7 +38,7 @@
"subtitle": "",
"presenter": "",
"note": "",
"endAction": "continue",
"endAction": "none",
"timerType": "count-down",
"timeStart": 36000000,
"timeEnd": 39600000,
@@ -70,7 +70,7 @@
"subtitle": "",
"presenter": "",
"note": "",
"endAction": "continue",
"endAction": "none",
"timerType": "count-down",
"timeStart": 39600000,
"timeEnd": 720000,