mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 14:54:37 +00:00
14 lines
328 B
TypeScript
14 lines
328 B
TypeScript
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()
|
|
}
|
|
}
|