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

This commit is contained in:
yyh authored and GitHub committed 2026-09-17 09:20:08 +00:00
1 parent f384f9e7cf
commit ee151ee952
2 files changed
+9 -3

No files matched your search

+6
View File
@@ -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'
@@ -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()
})