mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 00:13:53 +00:00
test(cuesheet): isolate empty-state rundown locator for retries
The 'background edit from empty state' test matched the rundown row by the shared prefix '0 empty-'. Each Playwright retry creates another empty-<ts> rundown, so on retry the locator resolved to multiple rows and failed with a strict-mode violation — preventing the (pre-existing, timing-related) flake from ever self-healing. Scope the locator to the unique name the test just created so each attempt is independent and retries can recover.
This commit is contained in:
@@ -119,8 +119,8 @@ test('cuesheet background edit from empty state', async ({ page }) => {
|
||||
await page.getByRole('textbox', { name: 'Rundown title' }).fill(emptyName);
|
||||
await page.getByRole('button', { name: 'Create rundown' }).click();
|
||||
|
||||
// edit it in the cuesheet
|
||||
await page.getByRole('row', { name: '0 empty-' }).getByTestId('rundown_menu').click();
|
||||
// edit it in the cuesheet (scope to the rundown we just created so retries stay isolated)
|
||||
await page.getByRole('row', { name: emptyName }).getByTestId('rundown_menu').click();
|
||||
await page.getByText('Edit in cuesheet').click();
|
||||
|
||||
// expect to see and empty screen
|
||||
|
||||
Reference in New Issue
Block a user