test(e2e): mark build tool writeback blocked

This commit is contained in:
yyh
2026-07-01 18:28:40 +08:00
parent 15af401519
commit d1a2fd1e58
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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) {