mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
- Merge latest main to resolve conflicts
- Fix asset browser filtering: pass target input name (e.g.,
'ckpt_name') instead of PrimitiveNode's widget name ('value')
**Changes:**
- Add `inputNameForBrowser` param to `createAssetWidget`
- Pass `targetInputName` from `PrimitiveNode._createAssetWidget`
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-8596-fix-merge-main-and-pass-target-input-name-to-asset-browser-2fd6d73d36508112bb17cf5d3fe54687)
by [Unito](https://www.unito.io)
---------
Co-authored-by: Subagent 5 <subagent@example.com>
Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: guill <jacob.e.segal@gmail.com>
Co-authored-by: Jin Yi <jin12cc@gmail.com>
Co-authored-by: Alexander Brown <drjkl@comfy.org>
Co-authored-by: AustinMroz <austin@comfy.org>
Co-authored-by: Comfy Org PR Bot <snomiao+comfy-pr@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Johnpaul Chiwetelu <49923152+Myestery@users.noreply.github.com>
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: Kelly Yang <124ykl@gmail.com>
Co-authored-by: sno <snomiao@gmail.com>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: Benjamin Lu <benjaminlu1107@gmail.com>
Co-authored-by: Terry Jia <terryjia88@gmail.com>
Co-authored-by: Luke Mino-Altherr <luke@comfy.org>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
32 lines
757 B
TypeScript
32 lines
757 B
TypeScript
import type { Locator, Page } from '@playwright/test'
|
|
|
|
export class BaseDialog {
|
|
readonly root: Locator
|
|
readonly closeButton: Locator
|
|
|
|
constructor(
|
|
public readonly page: Page,
|
|
testId?: string
|
|
) {
|
|
this.root = testId ? page.getByTestId(testId) : page.locator('.p-dialog')
|
|
this.closeButton = this.root.getByRole('button', { name: 'Close' })
|
|
}
|
|
|
|
async isVisible(): Promise<boolean> {
|
|
return this.root.isVisible()
|
|
}
|
|
|
|
async waitForVisible(): Promise<void> {
|
|
await this.root.waitFor({ state: 'visible' })
|
|
}
|
|
|
|
async waitForHidden(): Promise<void> {
|
|
await this.root.waitFor({ state: 'hidden' })
|
|
}
|
|
|
|
async close(): Promise<void> {
|
|
await this.closeButton.click({ force: true })
|
|
await this.waitForHidden()
|
|
}
|
|
}
|