fix(e2e): align Agent v2 workflow access link locator (#43255)

This commit is contained in:
Joel
2026-09-30 02:32:54 +00:00
committed by GitHub
parent a4524c215f
commit cf02d52d0d

View File

@@ -37,7 +37,7 @@ Then(
if (reference.app_updated_at == null)
await expect(row.getByText('N/A', { exact: true })).toBeVisible()
else await expect(row.getByText('N/A', { exact: true })).not.toBeVisible()
await expect(row.getByRole('link', { name: `Open ${workflowName} in Studio` })).toBeVisible()
await expect(row.getByRole('link', { name: `Open in Studio ${workflowName}` })).toBeVisible()
},
)
@@ -45,7 +45,7 @@ When(
'I open the Agent v2 Workflow access reference for {string}',
async function (this: DifyWorld, workflowName: string) {
const workflowLink = this.getPage().getByRole('link', {
name: `Open ${workflowName} in Studio`,
name: `Open in Studio ${workflowName}`,
})
const [workflowPage] = await Promise.all([