Workflow templates (#938)

* Add template gallery

* Add simple test

* Add examples

* Enable floating menu in test
This commit is contained in:
pythongosssss
2024-09-24 08:59:28 +09:00
committed by Chenlei Hu
parent 2aaee5c331
commit bf7652227a
15 changed files with 2016 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { Locator, Page } from '@playwright/test'
export class ComfyTemplates {
readonly content: Locator
constructor(readonly page: Page) {
this.content = page.getByTestId('template-workflows-content')
}
async loadTemplate(id: string) {
await this.content.getByTestId(`template-workflow-${id}`).click()
}
}