mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 02:43:50 +00:00
a3f14182a4
* refactor: server run script * refactor: extract message control feature * refactor: socket usage for message control feature * refactor: migrate e2e testing to playwright * chore: add feature tests * refactor: add validation on socket controller * chore: jest tests server logic * chore: update tests * chore: run playwright tests on pull_requests
15 lines
571 B
TypeScript
15 lines
571 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test.describe('minimal view behaviour can be changed through params', () => {
|
|
test.use({ viewport: { width: 1920, height: 1080 } });
|
|
test('without overloads', async ({ page }) => {
|
|
await page.goto('http://localhost:4001/minimal');
|
|
await page.getByTestId('minimal-timer').click();
|
|
});
|
|
test('hide nav', async ({ page }) => {
|
|
await page.goto('http://localhost:4001/minimal?hidenav=true');
|
|
const navBar = await page.locator('data-test-id=nav-logo');
|
|
await expect(navBar).toHaveCount(0);
|
|
});
|
|
});
|