mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
16 lines
671 B
TypeScript
16 lines
671 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
|
|
test('View params configures timer view', async ({ page }) => {
|
|
await page.goto('http://localhost:4001/timer');
|
|
|
|
await expect(page.getByText('TIME NOW')).toBeInViewport();
|
|
|
|
await page.mouse.move(Math.random() * 100, Math.random() * 100);
|
|
await page.getByTestId('navigation__toggle-settings').click();
|
|
await page.locator('label').filter({ hasText: 'Hide Time NowHides the Time' }).locator('span').nth(2).click();
|
|
await page.getByRole('button', { name: 'Save' }).click();
|
|
|
|
await expect(page.getByText('TIME NOW', { exact: true })).not.toBeInViewport();
|
|
await expect(page).toHaveURL(/.*hideClock=true/);
|
|
});
|