diff --git a/e2e/specs/mock/scenarios/action-auth-console.spec.ts b/e2e/specs/mock/scenarios/action-auth-console.spec.ts index 63f05f0213..0ae2f20df9 100644 --- a/e2e/specs/mock/scenarios/action-auth-console.spec.ts +++ b/e2e/specs/mock/scenarios/action-auth-console.spec.ts @@ -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([]);