Files
ComfyUI_frontend/browser_tests/fixtures/components/MediaLightbox.ts
dante01yoon 52995565a3 refactor(test): extract dialog page objects from inline getByRole usage
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.
2026-04-02 17:23:14 +09:00

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