mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
test(e2e): wait for apps console readiness (#41357)
This commit is contained in:
1 file changed
+2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user