mirror of
https://github.com/langgenius/dify.git
synced 2026-07-16 01:48:40 +08:00
34 lines
1.8 KiB
Gherkin
34 lines
1.8 KiB
Gherkin
@agent-v2 @authenticated @tools
|
|
Feature: Agent v2 tools
|
|
@core @tool-fixture
|
|
Scenario: JSON Replace tool is saved after adding it from the Tools selector
|
|
Given I am signed in as the default E2E admin
|
|
And the Agent Builder preseeded tool "JSON Process / JSON Replace" is available
|
|
And a basic configured Agent v2 test agent has been created via API
|
|
When I open the Agent v2 configure page
|
|
And I add the Agent Builder JSON Replace tool from the Tools selector
|
|
Then the Agent v2 JSON Replace tool 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 Agent v2 JSON Replace tool in the Tools section
|
|
|
|
@service-api-runtime @stable-model @tool-fixture
|
|
Scenario: JSON Replace tool runtime returns the replacement marker
|
|
Given I am signed in as the default E2E admin
|
|
And Agent v2 JSON Replace runtime verification is available
|
|
And the Agent Builder stable chat model is available
|
|
And the Agent Builder preseeded tool "JSON Process / JSON Replace" is available
|
|
And a runnable Agent v2 test agent has been created via API
|
|
When I open the Agent v2 configure page
|
|
Then Agent v2 JSON Replace runtime verification should be available
|
|
|
|
@core
|
|
Scenario: Tool selector shows an empty state for a missing tool search
|
|
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 search for the missing Agent v2 tool from the Tools selector
|
|
Then I should see the Agent v2 tool selector empty state
|
|
When I clear the Agent v2 tool selector search
|
|
Then I should see the Agent v2 tool selector ready for another search
|