mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-23 16:09:11 +00:00
feat: implement multiple aux timers
This commit is contained in:
committed by
Carlos Valente
parent
d1c58712ae
commit
bf8ed8d017
@@ -2,17 +2,18 @@ import { test, expect } from '@playwright/test';
|
||||
|
||||
test('Aux timer buttons', async ({ page }) => {
|
||||
await page.goto('http://localhost:4001/editor');
|
||||
await page.getByTestId('time-input-auxTimer').click();
|
||||
await page.getByTestId('time-input-auxTimer').fill('123456');
|
||||
await page.getByTestId('time-input-auxTimer').press('Enter');
|
||||
await expect(page.getByTestId('time-input-auxTimer')).toHaveValue('12:34:56');
|
||||
await page.getByTestId('aux-timer-start').click();
|
||||
await expect(page.getByTestId('time-input-auxTimer')).toHaveValue('12:34:53', { timeout: 4000 });
|
||||
await page.getByTestId('aux-timer-pause').click();
|
||||
await expect(page.getByTestId('time-input-auxTimer')).toHaveValue('12:34:53');
|
||||
await page.getByTestId('aux-timer-stop').click();
|
||||
await expect(page.getByTestId('time-input-auxTimer')).toHaveValue('12:34:56');
|
||||
await page.getByTestId('aux-timer-direction').click();
|
||||
await page.getByTestId('aux-timer-start').click();
|
||||
await expect(page.getByTestId('time-input-auxTimer')).toHaveValue('12:34:59', { timeout: 4000 });
|
||||
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-input-aux1')).toHaveValue('12:34:53', { timeout: 4000 });
|
||||
await page.getByTestId('aux-timer-pause-1').click();
|
||||
await expect(page.getByTestId('time-input-aux1')).toHaveValue('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-input-aux1')).toHaveValue('12:34:59', { timeout: 4000 });
|
||||
await page.getByTestId('aux-timer-stop-1').click();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user