mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 09:23:51 +00:00
cf206e6220
* chore: upgrade vite * fix: inconsistentCjsInterop for ReactQR * chore: e2e tests should use relativve path and get host from playwright config * refactor: drop qr code dependency --------- Co-authored-by: alex-Arc <omnivox@LAPTOP-RC5SNBVV.localdomain>
20 lines
1.0 KiB
TypeScript
20 lines
1.0 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('Aux timer buttons', async ({ page }) => {
|
|
await page.goto('/editor');
|
|
await page.getByTestId('time-input-aux1').click();
|
|
await page.getByTestId('time-input-aux1').fill('123456');
|
|
await page.getByTestId('time-input-aux1').press('Enter');
|
|
await expect(page.getByTestId('time-input-aux1')).toHaveValue('12:34:56');
|
|
await page.getByTestId('aux-timer-start-1').click();
|
|
await expect(page.getByTestId('time-label-aux1')).toHaveText('12:34:53', { timeout: 4000 });
|
|
await page.getByTestId('aux-timer-pause-1').click();
|
|
await expect(page.getByTestId('time-label-aux1')).toHaveText('12:34:53');
|
|
await page.getByTestId('aux-timer-stop-1').click();
|
|
await expect(page.getByTestId('time-input-aux1')).toHaveValue('12:34:56');
|
|
await page.getByTestId('aux-timer-direction-1').click();
|
|
await page.getByTestId('aux-timer-start-1').click();
|
|
await expect(page.getByTestId('time-label-aux1')).toHaveText('12:34:59', { timeout: 4000 });
|
|
await page.getByTestId('aux-timer-stop-1').click();
|
|
});
|