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: avoid copy-sensitive agent file toast assertion (#41179)

Joel44aec257bf70
diff --git a/e2e/features/step-definitions/agent-v2/files.steps.ts b/e2e/features/step-definitions/agent-v2/files.steps.ts
index e47b5a7fa65..95359439776 100644
--- a/e2e/features/step-definitions/agent-v2/files.steps.ts
+++ b/e2e/features/step-definitions/agent-v2/files.steps.ts
@@ -62,8 +62,9 @@ Then(
async function (this: DifyWorld) {
const page = this.getPage()
const dialog = page.getByRole('dialog', { name: 'Upload file' })
+ const notifications = page.getByRole('region', { name: 'Notifications' })
- await expect(page.getByText('Upload one file.')).toBeVisible()
+ await expect(notifications.getByRole('dialog')).toBeVisible()
await expect(dialog.getByRole('button', { name: 'Upload' })).toBeDisabled()
await expect(
dialog.getByText(agentBuilderTestMaterials.smallFile, { exact: true }),