test(e2e): Address flake (#2274)

Observed a flake when the Recording ID also contained an `OK`, causing a conflict with finding this OK button.
This commit is contained in:
Michael Li authored and GitHub committed 2024-04-25 13:52:26 -04:00
1 parent dccf06cb0c
commit 3674d07762
1 file changed
+1 -1
@@ -169,7 +169,7 @@ test('Verify session recording can be deleted @ent @aws', async ({ page }) => {
.click();
await page.getByText('Manage').click();
await page.getByRole('button', { name: 'Delete recording' }).click();
await page.getByRole('button', { name: 'OK' }).click();
await page.getByRole('button', { name: 'OK', exact: true }).click();
await expect(
page.getByRole('alert').getByText('Error', { exact: true }),
).toBeVisible();