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

This commit is contained in:
Joel authored and GitHub committed 2026-09-30 02:32:54 +00:00
1 parent a4524c215f
commit cf02d52d0d
1 file changed
+2 -2
@@ -37,7 +37,7 @@ Then(
if (reference.app_updated_at == null) if (reference.app_updated_at == null)
await expect(row.getByText('N/A', { exact: true })).toBeVisible() await expect(row.getByText('N/A', { exact: true })).toBeVisible()
else await expect(row.getByText('N/A', { exact: true })).not.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}', 'I open the Agent v2 Workflow access reference for {string}',
async function (this: DifyWorld, workflowName: string) { async function (this: DifyWorld, workflowName: string) {
const workflowLink = this.getPage().getByRole('link', { const workflowLink = this.getPage().getByRole('link', {
name: `Open ${workflowName} in Studio`, name: `Open in Studio ${workflowName}`,
}) })
const [workflowPage] = await Promise.all([ const [workflowPage] = await Promise.all([