Files
dify/e2e/features/agent-v2/tools.feature
yyh 1ae2f95f7c test(e2e): add agent v2 core coverage (#38209)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-02 06:18:38 +00:00

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