mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-12 10:53:51 +00:00
b048d0f88d
* pass on all event edits * MakePublic * trim value in cell * edit notes * title * add key check * don't log error Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com> * checkbox * refactor * remove log * fix test * use row number to test value --------- Co-authored-by: Carlos Valente <34649812+cpvalente@users.noreply.github.com>
19 lines
754 B
TypeScript
19 lines
754 B
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
test('cuesheet displays events', async ({ page }) => {
|
|
// same elements in cuesheet
|
|
await page.goto('http://localhost:4001/cuesheet');
|
|
await expect(page.getByText('Eurovision Song Contest')).toBeVisible();
|
|
await expect(page.getByRole('row', { name: 'Lunch break' })).toBeVisible();
|
|
|
|
await expect(page.locator('tr:nth-child(1) > td:nth-child(7)').first().getByRole('textbox').first()).toHaveValue(
|
|
'Albania',
|
|
);
|
|
await expect(page.locator('tr:nth-child(2) > td:nth-child(7)').first().getByRole('textbox').first()).toHaveValue(
|
|
'Latvia',
|
|
);
|
|
await expect(page.locator('tr:nth-child(3) > td:nth-child(7)').first().getByRole('textbox').first()).toHaveValue(
|
|
'Lithuania',
|
|
);
|
|
});
|