Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

test(e2e): assert agent duplicate result instead of removed toast (#43834)

yyh4410f1f39fcb
diff --git a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts b/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts
index bb9537f9b04..569c910c67d 100644
--- a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts
+++ b/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts
@@ -114,7 +114,8 @@ When(
this.lastCreatedAgentName = copiedAgent.name
this.lastCreatedAgentRole = copiedAgent.role ?? undefined
- await expect(page.getByText('Agent duplicated.')).toBeVisible()
+ await expect(dialog).toBeHidden()
+ await expect(page.getByRole('listitem', { name: copyName, exact: true })).toBeVisible()
},
)