mirror of
https://github.com/langgenius/dify.git
synced 2026-06-09 17:32:00 +08:00
20 lines
648 B
TypeScript
20 lines
648 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' }).first().click()
|
|
})
|
|
|
|
When('I publish the app', async function (this: DifyWorld) {
|
|
await this.getPage()
|
|
.getByRole('button', { name: /Publish Update/ })
|
|
.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,
|
|
})
|
|
})
|