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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
test(e2e): align duplicate Agent publish state (#40108)
yyh6f2e4d72d3aa
diff --git a/e2e/features/agent-v2/agent-edit.feature b/e2e/features/agent-v2/agent-edit.featureindex 7d3bd949da4..ca13b4fc845 100644--- a/e2e/features/agent-v2/agent-edit.feature+++ b/e2e/features/agent-v2/agent-edit.feature@@ -17,7 +17,7 @@ Feature: Agent v2 Agent Edit pageAnd the Agent Builder preseeded Agent "E2E New Agent Builder Full Config" includes the core fixture configurationAnd the preseeded Agent v2 "E2E New Agent Builder Full Config" has been published via APIWhen I duplicate the preseeded Agent v2 "E2E New Agent Builder Full Config" from the Agent Roster- Then the duplicated Agent v2 should inherit the full-config fixture from "E2E New Agent Builder Full Config"+ Then the duplicated Agent v2 should inherit the full-config fixture from "E2E New Agent Builder Full Config" without inheriting its publication stateWhen I open the Agent v2 configure pageAnd I fill the Agent v2 prompt editor with the updated E2E promptThen the Agent v2 configuration should be saved automaticallydiff --git a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts b/e2e/features/step-definitions/agent-v2/agent-edit.steps.tsindex 02c1e577b3c..698784b11f1 100644--- a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts+++ b/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts@@ -179,7 +179,7 @@ Then('I should see the Agent v2 full-config fixture sections', async function (t})Then(- 'the duplicated Agent v2 should inherit the full-config fixture from {string}',+ 'the duplicated Agent v2 should inherit the full-config fixture from {string} without inheriting its publication state',async function (this: DifyWorld, agentName: string) {const sourceAgent = getPreseededAgent(this, agentName)const duplicatedAgentId = getCurrentAgentId(this)@@ -198,7 +198,8 @@ Then(expect(duplicatedDetail.id).toBe(duplicatedAgentId)expect(duplicatedDetail.name).toBe(this.lastCreatedAgentName)- expect(duplicatedSnapshot.activeConfigIsPublished).toBe(sourceSnapshot.activeConfigIsPublished)+ expect(sourceSnapshot.activeConfigIsPublished).toBe(true)+ expect(duplicatedSnapshot.activeConfigIsPublished).toBe(false)expect(duplicatedSnapshot.model).toEqual({name: stableModel.name,provider: stableModel.provider,