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 Agent tool credential states (#39698)
yyh93e7d508455c
diff --git a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts b/e2e/features/step-definitions/agent-v2/agent-edit.steps.tsindex 06eb5291323..02c1e577b3c 100644--- a/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts+++ b/e2e/features/step-definitions/agent-v2/agent-edit.steps.ts@@ -247,11 +247,12 @@ Then('I should see the Agent v2 tool state fixture tools', async function (this:const toolsSection = page.getByRole('region', { name: 'Tools' })await expect(toolsSection).toBeVisible({ timeout: 30_000 })- await expect(- toolsSection.getByRole('button', { exact: true, name: 'Not authorized' }),- ).toHaveCount(2)- const { action: jsonReplaceAction, tool: jsonTool } = await expectProviderToolActionVisible(+ const {+ action: jsonReplaceAction,+ provider: jsonProvider,+ tool: jsonTool,+ } = await expectProviderToolActionVisible(toolsSection,agentBuilderPreseededResources.jsonReplaceTool,)@@ -269,10 +270,16 @@ Then('I should see the Agent v2 tool state fixture tools', async function (this:}),).toBeVisible()- await expectProviderToolActionVisible(+ const { provider: tavilyProvider } = await expectProviderToolActionVisible(toolsSection,agentBuilderPreseededResources.tavilySearchTool,)+ await expect(+ tavilyProvider.locator('..').getByRole('button', { exact: true, name: 'Not authorized' }),+ ).toBeVisible()+ await expect(+ jsonProvider.locator('..').getByRole('button', { exact: true, name: 'Not authorized' }),+ ).toHaveCount(0)})Then('I should see the Agent v2 dual retrieval fixture settings', async function (this: DifyWorld) {diff --git a/e2e/features/step-definitions/agent-v2/configure-helpers.ts b/e2e/features/step-definitions/agent-v2/configure-helpers.tsindex da76a65d44c..34faf827856 100644--- a/e2e/features/step-definitions/agent-v2/configure-helpers.ts+++ b/e2e/features/step-definitions/agent-v2/configure-helpers.ts@@ -276,7 +276,7 @@ export const expectProviderToolActionVisible = async (const action = toolsSection.getByText(tool.actionName, { exact: true })await expect(action).toBeVisible()- return { action, tool }+ return { action, provider, tool }}export const openAgentKnowledgeRetrievalDialog = async (