mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
test(e2e): align duplicate Agent publish state (#40108)
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -17,7 +17,7 @@ Feature: Agent v2 Agent Edit page
|
||||
And the Agent Builder preseeded Agent "E2E New Agent Builder Full Config" includes the core fixture configuration
|
||||
And the preseeded Agent v2 "E2E New Agent Builder Full Config" has been published via API
|
||||
When I duplicate the preseeded Agent v2 "E2E New Agent Builder Full Config" from the Agent Roster
|
||||
Then the duplicated Agent v2 should inherit the full-config fixture from "E2E New Agent Builder Full Config"
|
||||
Then the duplicated Agent v2 should inherit the full-config fixture from "E2E New Agent Builder Full Config" without inheriting its publication state
|
||||
When I open the Agent v2 configure page
|
||||
And I fill the Agent v2 prompt editor with the updated E2E prompt
|
||||
Then the Agent v2 configuration should be saved automatically
|
||||
|
||||
@@ -179,7 +179,7 @@ Then('I should see the Agent v2 full-config fixture sections', async function (t
|
||||
})
|
||||
|
||||
Then(
|
||||
'the duplicated Agent v2 should inherit the full-config fixture from {string}',
|
||||
'the duplicated Agent v2 should inherit the full-config fixture from {string} without inheriting its publication state',
|
||||
async function (this: DifyWorld, agentName: string) {
|
||||
const sourceAgent = getPreseededAgent(this, agentName)
|
||||
const duplicatedAgentId = getCurrentAgentId(this)
|
||||
@@ -198,7 +198,8 @@ Then(
|
||||
|
||||
expect(duplicatedDetail.id).toBe(duplicatedAgentId)
|
||||
expect(duplicatedDetail.name).toBe(this.lastCreatedAgentName)
|
||||
expect(duplicatedSnapshot.activeConfigIsPublished).toBe(sourceSnapshot.activeConfigIsPublished)
|
||||
expect(sourceSnapshot.activeConfigIsPublished).toBe(true)
|
||||
expect(duplicatedSnapshot.activeConfigIsPublished).toBe(false)
|
||||
expect(duplicatedSnapshot.model).toEqual({
|
||||
name: stableModel.name,
|
||||
provider: stableModel.provider,
|
||||
|
||||
Reference in new issue
Block a user