Small clean-up (#1815)

* chore: remove old comment

* chore: smal lclean up of a e2e test

* chore: bump to beta.6

* chore: cleanup imports

* fix integration values com in ms

* allow linkStart and timeStrategy from API

* remove local mac dist
This commit is contained in:
Alex Christoffer Rasmussen
2025-10-10 17:37:55 +02:00
committed by GitHub
parent 4a27973de1
commit da7c0d4ff2
21 changed files with 42 additions and 55 deletions
+11 -15
View File
@@ -1,11 +1,10 @@
import { expect, test } from '@playwright/test';
// TODO: can we replace the clicks with something else?
test.describe('pages routes are available', () => {
test.use({ viewport: { width: 1920, height: 1080 } });
test.describe('main views', () => {
test('editor', async ({ page }) => {
await page.goto('http://localhost:4001/editor');
await page.goto('/editor');
await expect(page).toHaveTitle(/ontime/);
await expect(page.getByTestId('editor-container')).toBeVisible();
@@ -15,44 +14,41 @@ test.describe('pages routes are available', () => {
});
test('cuesheet', async ({ page }) => {
await page.goto('http://localhost:4001/cuesheet');
await page.goto('/cuesheet');
await expect(page).toHaveTitle(/ontime/);
await page.getByTestId('cuesheet').click();
await expect(page.getByTestId('cuesheet')).toBeVisible();
});
test('operator', async ({ page }) => {
await page.goto('http://localhost:4001/op');
await page.goto('/op');
await expect(page).toHaveTitle(/ontime/);
});
test('timer', async ({ page }) => {
await page.goto('http://localhost:4001/timer');
await page.goto('/timer');
await expect(page).toHaveTitle(/ontime/);
});
test('backstage', async ({ page }) => {
await page.goto('http://localhost:4001/backstage');
await page.goto('/backstage');
await expect(page).toHaveTitle(/ontime/);
});
test('studio', async ({ page }) => {
await page.goto('http://localhost:4001/studio');
await page.goto('/studio');
await expect(page).toHaveTitle(/ontime/);
});
test('countdown', async ({ page }) => {
await page.goto('http://localhost:4001/countdown');
await page.goto('/countdown?sub=32d31');
await expect(page).toHaveTitle(/ontime/);
await page.getByRole('button', { name: 'Add' }).click();
await page.getByText('Albania').click();
await page.getByRole('button', { name: 'Save' }).click();
await expect(page.getByText('Albania')).toBeVisible();
await expect(page.getByText('Latvia')).toBeHidden();
});
@@ -60,15 +56,15 @@ test.describe('pages routes are available', () => {
test.describe('detached views', () => {
test('rundown', async ({ page }) => {
await page.goto('http://localhost:4001/rundown');
await page.goto('/rundown');
await expect(page.getByTestId('panel-rundown')).toBeVisible();
});
test('timer control', async ({ page }) => {
await page.goto('http://localhost:4001/timercontrol');
await page.goto('/timercontrol');
await expect(page.getByTestId('panel-timer-control')).toBeVisible();
});
test('message control', async ({ page }) => {
await page.goto('http://localhost:4001/messagecontrol');
await page.goto('/messagecontrol');
await expect(page.getByTestId('panel-messages-control')).toBeVisible();
});
});