mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 05:56:31 +08:00
22 lines
861 B
TypeScript
22 lines
861 B
TypeScript
import type { DifyWorld } from '../../support/world'
|
|
import { Then, When } from '@cucumber/cucumber'
|
|
import { expect } from '@playwright/test'
|
|
|
|
When('I navigate to the app develop page', async function (this: DifyWorld) {
|
|
const appId = this.createdAppIds.at(-1)
|
|
await this.getPage().goto(`/app/${appId}/develop`)
|
|
})
|
|
|
|
When('I navigate to the app overview page', async function (this: DifyWorld) {
|
|
const appId = this.createdAppIds.at(-1)
|
|
await this.getPage().goto(`/app/${appId}/overview`)
|
|
})
|
|
|
|
Then('I should be on the app develop page', async function (this: DifyWorld) {
|
|
await expect(this.getPage()).toHaveURL(/\/app\/[^/]+\/develop(?:\?.*)?$/, { timeout: 30_000 })
|
|
})
|
|
|
|
Then('I should be on the app overview page', async function (this: DifyWorld) {
|
|
await expect(this.getPage()).toHaveURL(/\/app\/[^/]+\/overview(?:\?.*)?$/, { timeout: 30_000 })
|
|
})
|