mirror of
https://github.com/langgenius/dify.git
synced 2026-07-21 18:58:35 +08:00
Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: 林玮 (Jade Lin) <linw1995@icloud.com> Co-authored-by: 盐粒 Yanli <mail@yanli.one> Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: Jashwanth Reddy Gummula <gmrnlg1971@gmail.com> Co-authored-by: WH-2099 <wh2099@pm.me> Co-authored-by: 非法操作 <hjlarry@163.com> Co-authored-by: wangxiaolei <fatelei@gmail.com> Co-authored-by: FFXN <31929997+FFXN@users.noreply.github.com> Co-authored-by: Yansong Zhang <916125788@qq.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
58 lines
3.1 KiB
Gherkin
58 lines
3.1 KiB
Gherkin
@agent-v2 @authenticated @output-variables
|
|
Feature: Agent v2 output variables
|
|
@core @stable-model
|
|
Scenario: Workflow Agent v2 output variables persist after refresh
|
|
Given I am signed in as the default E2E admin
|
|
And the Agent Builder stable chat model is available
|
|
And a workflow app with an Agent v2 node has been created via API
|
|
When I open the app from the app list
|
|
And I open the Agent v2 workflow node panel
|
|
And I add these Agent v2 workflow node output variables
|
|
| name | type |
|
|
| e2e_summary | string |
|
|
| e2e_report_pdf | file |
|
|
| e2e_topics | array[string] |
|
|
Then the Agent v2 workflow node output variables should be saved in the workflow draft
|
|
When I refresh the current page
|
|
And I open the Agent v2 workflow node panel
|
|
Then I should see the Agent v2 workflow node output variables
|
|
|
|
@core @stable-model
|
|
Scenario: Workflow Agent v2 nested object output variables persist after refresh
|
|
Given I am signed in as the default E2E admin
|
|
And the Agent Builder stable chat model is available
|
|
And a workflow app with an Agent v2 node has been created via API
|
|
When I open the app from the app list
|
|
And I open the Agent v2 workflow node panel
|
|
And I add a required Agent v2 workflow node object output variable with text and analysis fields
|
|
Then the Agent v2 workflow node nested object output variable should be saved in the workflow draft
|
|
When I refresh the current page
|
|
And I open the Agent v2 workflow node panel
|
|
Then I should see the Agent v2 workflow node nested object output variable
|
|
|
|
@core @stable-model
|
|
Scenario: Workflow Agent v2 prompt output reference stays synced when renamed
|
|
Given I am signed in as the default E2E admin
|
|
And the Agent Builder stable chat model is available
|
|
And a workflow app with an Agent v2 node has been created via API
|
|
When I open the app from the app list
|
|
And I open the Agent v2 workflow node panel
|
|
And I insert a file output reference from the Agent v2 workflow node task editor
|
|
Then the Agent v2 workflow node task should reference the file output
|
|
When I rename the Agent v2 workflow node task output reference
|
|
Then the Agent v2 workflow node task should reference the renamed file output
|
|
When I refresh the current page
|
|
And I open the Agent v2 workflow node panel
|
|
Then the Agent v2 workflow node task should reference the renamed file output
|
|
|
|
@output-reference-delete @feature-gated @stable-model
|
|
Scenario: Workflow Agent v2 prompt output reference deletion remains explicit
|
|
Given I am signed in as the default E2E admin
|
|
And Agent v2 workflow task output reference deletion consistency is available
|
|
And the Agent Builder stable chat model is available
|
|
And a workflow app with an Agent v2 node has been created via API
|
|
When I open the app from the app list
|
|
And I open the Agent v2 workflow node panel
|
|
And I insert a file output reference from the Agent v2 workflow node task editor
|
|
Then Agent v2 workflow task output reference deletion consistency should be available
|