🎯 test: Match the Action Save Toast Once When a Live Region Repeats It (#17091)

This commit is contained in:
Marco Beretta 2026-10-14 17:37:20 +02:00 • committed by GitHub
parent d738fa43b4
commit 09ae8d2f3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,9 @@ test.describe('action auth console', () => {
);
await page.getByRole('button', { name: 'Create', exact: true }).click();
expect((await saveRequest).postData() ?? '').toContain(API_KEY);
await expect(page.getByText('Successfully created or updated Action')).toBeVisible();
await expect(
page.getByText('Successfully created or updated Action', { exact: true }).first(),
).toBeVisible();
const logged = await Promise.all(pending);
expect(logged.filter((line) => line.includes(API_KEY))).toEqual([]);