mirror of
https://github.com/langgenius/dify.git
synced 2026-09-02 06:03:18 +08:00
Co-authored-by: zhangx1n <zhangxin@dify.ai> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
19 lines
705 B
TypeScript
19 lines
705 B
TypeScript
import type { DifyWorld } from '../../support/world'
|
|
import { Then, When } from '@cucumber/cucumber'
|
|
import { expect } from '@playwright/test'
|
|
|
|
When('I open the publish panel', async function (this: DifyWorld) {
|
|
await this.getPage().getByRole('button', { name: 'Publish', exact: true }).click()
|
|
})
|
|
|
|
When('I publish the app', async function (this: DifyWorld) {
|
|
const publishPanel = this.getPage().getByRole('dialog')
|
|
await publishPanel.getByRole('button', { name: 'Publish', exact: true }).click()
|
|
})
|
|
|
|
Then('the app should be marked as published', async function (this: DifyWorld) {
|
|
await expect(this.getPage().getByRole('button', { name: 'Published' })).toBeVisible({
|
|
timeout: 30_000,
|
|
})
|
|
})
|