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:
Claude
2026-06-20 07:18:55 +00:00
parent bdd4f75c4a
commit dd8cfef4de
+2 -2
View File
@@ -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