Fix searchbox dismissed when closing filter panel (#2196)

This commit is contained in:
bymyself
2025-01-08 08:57:55 -07:00
committed by GitHub
parent 67e6df7c72
commit 73ecacfa2d
3 changed files with 30 additions and 2 deletions

View File

@@ -3,6 +3,13 @@ import { Locator, Page } from '@playwright/test'
export class ComfyNodeSearchFilterSelectionPanel {
constructor(public readonly page: Page) {}
get header() {
return this.page
.getByRole('dialog')
.locator('div')
.filter({ hasText: 'Add node filter condition' })
}
async selectFilterType(filterType: string) {
await this.page
.locator(