Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

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

Marco Beretta09ae8d2f3b3c
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([]);