mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
fix(e2e): align Agent v2 workflow access link locator (#43255)
This commit is contained in:
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([
|
||||||
|
|||||||
Reference in new issue
Block a user