mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-26 01:09:46 +00:00
Extract ConfirmDialog from ComfyPage.ts into its own component file and
add MediaLightbox and TemplatesDialog page objects. Refactor tests to use
these page objects instead of inline getByRole('dialog') calls.
12 lines
300 B
TypeScript
12 lines
300 B
TypeScript
import type { Locator, Page } from '@playwright/test'
|
|
|
|
export class MediaLightbox {
|
|
public readonly root: Locator
|
|
public readonly closeButton: Locator
|
|
|
|
constructor(public readonly page: Page) {
|
|
this.root = page.getByRole('dialog')
|
|
this.closeButton = this.root.getByLabel('Close')
|
|
}
|
|
}
|