Files
gsfdc/demo-dify/dify/e2e/features/agent-v2/files.feature
T
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00

55 lines
2.9 KiB
Gherkin

@agent-v2 @authenticated @files
Feature: Agent v2 files
@core
Scenario: Uploading a small file keeps it in the Agent configuration
Given I am signed in as the default E2E admin
And a basic configured Agent v2 test agent has been created via API
When I open the Agent v2 configure page
And I upload the small Agent v2 file from the Files section
Then I should see the small Agent v2 file in the Files section
And the small Agent v2 file should be saved in the Agent v2 draft
And the Agent v2 configuration should be saved automatically
When I refresh the current page
Then I should see the small Agent v2 file in the Files section
@core
Scenario: Uploading an empty file keeps a zero-byte file in the Agent configuration
Given I am signed in as the default E2E admin
And a basic configured Agent v2 test agent has been created via API
When I open the Agent v2 configure page
And I upload the empty Agent v2 file from the Files section
Then I should see the empty Agent v2 file in the Files section
And the empty Agent v2 file should be saved as a zero-byte file in the Agent v2 draft
And the Agent v2 configuration should be saved automatically
When I refresh the current page
Then I should see the empty Agent v2 file in the Files section
@core
Scenario: Uploading a special-name file keeps the filename readable
Given I am signed in as the default E2E admin
And a basic configured Agent v2 test agent has been created via API
When I open the Agent v2 configure page
And I upload the special-name Agent v2 file from the Files section
Then I should see the special-name Agent v2 file in the Files section
And the special-name Agent v2 file should be saved in the Agent v2 draft
And the Agent v2 configuration should be saved automatically
When I refresh the current page
Then I should see the special-name Agent v2 file in the Files section
@core @files-limits
Scenario: Dropping multiple Agent v2 files uploads and preserves every file
Given I am signed in as the default E2E admin
And a basic configured Agent v2 test agent has been created via API
When I open the Agent v2 configure page
And I drop multiple Agent v2 files into the Files upload dialog
Then the Agent v2 Files upload dialog should queue every dropped file
When I upload the dropped Agent v2 files
Then I should see the small Agent v2 file in the Files section
And I should see the empty Agent v2 file in the Files section
And the small Agent v2 file should be saved in the Agent v2 draft
And the empty Agent v2 file should be saved as a zero-byte file in the Agent v2 draft
And the Agent v2 configuration should be saved automatically
When I refresh the current page
Then I should see the small Agent v2 file in the Files section
And I should see the empty Agent v2 file in the Files section