Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

test(e2e): wait for apps console readiness (#41357)

yyh5aac67f5704b
diff --git a/e2e/features/step-definitions/apps/duplicate-app.steps.ts b/e2e/features/step-definitions/apps/duplicate-app.steps.ts
index 644229b1195..707fdf13d8c 100644
--- a/e2e/features/step-definitions/apps/duplicate-app.steps.ts
+++ b/e2e/features/step-definitions/apps/duplicate-app.steps.ts
@@ -3,6 +3,7 @@ import { Given, When } from '@cucumber/cucumber'
import { zPostAppsByAppIdCopyResponse } from '@dify/contracts/api/console/apps/zod.gen'
import { expect } from '@playwright/test'
import { createTestApp } from '../../../support/api/apps'
+import { waitForAppsConsole } from '../../../support/apps'
import { createE2EResourceName } from '../../../support/naming'
Given('there is an existing E2E app available for testing', async function (this: DifyWorld) {
@@ -17,6 +18,7 @@ When('I open the options menu for the last created E2E app', async function (thi
if (!appName) throw new Error('No app name stored. Run "I enter a unique E2E app name" first.')
const page = this.getPage()
+ await waitForAppsConsole(page, 30_000)
const studio = page.getByRole('region', { name: 'Studio' })
const appLink = studio.getByRole('link', { name: appName, exact: true })
await expect(appLink).toBeVisible()