mirror of
https://github.com/langgenius/dify.git
synced 2026-07-15 01:17:04 +08:00
test(e2e): mark build tool writeback blocked
This commit is contained in:
@ -44,3 +44,10 @@ Feature: Agent v2 build draft
|
||||
When I refresh the current page
|
||||
Then I should see the updated E2E prompt in the Agent v2 prompt editor
|
||||
And the Agent v2 Build draft should no longer be active
|
||||
|
||||
@build-tool-writeback @feature-gated
|
||||
Scenario: Applying a Build draft can add Dify Tools to 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
|
||||
Then Agent v2 Build chat Dify Tool writeback should be available
|
||||
|
||||
@ -743,6 +743,17 @@ Then('Agent v2 Content Moderation Settings should be available', async function
|
||||
}
|
||||
})
|
||||
|
||||
Then('Agent v2 Build chat Dify Tool writeback should be available', async function (this: DifyWorld) {
|
||||
const toolsSection = this.getPage().getByRole('region', { name: 'Tools' })
|
||||
|
||||
await expect(toolsSection).toBeVisible({ timeout: 30_000 })
|
||||
|
||||
return skipBlockedPrecondition(
|
||||
this,
|
||||
'Build draft Dify Tool writeback is not available: Build draft currently supports files, skills, and env only.',
|
||||
)
|
||||
})
|
||||
|
||||
Then(
|
||||
'I should see the Agent v2 environment variables from the valid import in Advanced Settings',
|
||||
async function (this: DifyWorld) {
|
||||
|
||||
Reference in New Issue
Block a user