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.

708 B
Raw Blame
import type { DifyWorld } from '../../support/world.ts'
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,
  })
})