fix(e2e): follow agent roster create menu (#39020)

This commit is contained in:
yyh
2026-07-15 20:39:51 +08:00
committed by GitHub
parent 73c3048599
commit fe96bea1f0
@@ -11,7 +11,8 @@ When('I create an Agent v2 test agent from the Agent Roster', async function (th
const agentDescription = 'Created by Dify E2E through the Agent Roster UI.'
await page.goto('/agents')
await page.getByRole('button', { name: 'Create agent' }).click()
await page.getByRole('button', { name: 'Create' }).click()
await page.getByRole('menuitem', { name: 'Create from Blank' }).click()
const dialog = page.getByRole('dialog', { name: 'Create agent' })
await expect(dialog).toBeVisible()