Files
ComfyUI_frontend/browser_tests/helpers/templates.ts
2024-12-30 17:26:37 -05:00

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()
}
}