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.

fix(e2e): align Agent node selection and workflow triggers (#42421)

yyhee151ee952de
diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml
index b15fd093086..89c06f6e5ed 100644
--- a/.github/workflows/post-merge.yml
+++ b/.github/workflows/post-merge.yml
@@ -93,6 +93,12 @@ jobs:
- 'web/app/components/base/chat/chat-with-history/**'
- 'web/app/components/base/chat/chat/**'
- 'web/app/components/base/voice-input/**'
+ - 'web/app/components/workflow/index.tsx'
+ - 'web/app/components/workflow/block-selector/**'
+ - 'web/app/components/workflow/hooks/use-node-keyboard-interactions.ts'
+ - 'web/app/components/workflow/hooks/use-nodes-interactions.ts'
+ - 'web/app/components/workflow/hooks/use-nodes-sync-draft.ts'
+ - 'web/app/components/workflow/nodes/_base/**'
- 'web/app/components/workflow/nodes/agent-v2/**'
- 'web/i18n/en-US/agent-v-2.json'
- 'web/i18n/en-US/common.json'
diff --git a/e2e/features/step-definitions/agent-v2/workflow-node.steps.ts b/e2e/features/step-definitions/agent-v2/workflow-node.steps.ts
index 91252baaae1..79453305827 100644
--- a/e2e/features/step-definitions/agent-v2/workflow-node.steps.ts
+++ b/e2e/features/step-definitions/agent-v2/workflow-node.steps.ts
@@ -46,10 +46,10 @@ Given(
When('I open the Agent v2 workflow node panel', async function (this: DifyWorld) {
const page = this.getPage()
- const agentNode = page.getByRole('button', { name: 'Agent', exact: true })
+ const agentNodeTitle = page.getByTitle('Agent', { exact: true })
- await expect(agentNode).toBeVisible({ timeout: 30_000 })
- await agentNode.click()
+ await expect(agentNodeTitle).toBeVisible({ timeout: 30_000 })
+ await agentNodeTitle.click()
await expect(page.getByRole('button', { name: 'Output Variables' })).toBeVisible()
})