mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix(ci): add license to ingest-types, fix E2E search selector
- Add MIT license to @comfyorg/ingest-types package.json (fixes validate-licenses CI check) - Fix search input selector: ComboboxInput renders role="combobox", not role="searchbox". Use getByPlaceholder(/search/i) instead. - Increase debounce wait from 300ms to 500ms for CI stability.
This commit is contained in:
@@ -22,18 +22,19 @@ test.describe(
|
||||
await comfyPage.templates.expectMinimumCardCount(1)
|
||||
|
||||
const dialog = comfyPage.page.getByRole('dialog')
|
||||
const searchInput = dialog.getByRole('searchbox')
|
||||
const searchInput = dialog.getByPlaceholder(/search/i)
|
||||
await expect(searchInput).toBeVisible()
|
||||
|
||||
const beforeCount = await comfyPage.templates.allTemplateCards.count()
|
||||
|
||||
await searchInput.fill('zzz_nonexistent_template_xyz')
|
||||
await comfyPage.page.waitForTimeout(300)
|
||||
await comfyPage.page.waitForTimeout(500)
|
||||
|
||||
const afterCount = await comfyPage.templates.allTemplateCards.count()
|
||||
expect(afterCount).toBeLessThan(beforeCount)
|
||||
|
||||
await searchInput.clear()
|
||||
await comfyPage.page.waitForTimeout(300)
|
||||
await comfyPage.page.waitForTimeout(500)
|
||||
await comfyPage.templates.expectMinimumCardCount(1)
|
||||
})
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@comfyorg/ingest-types",
|
||||
"version": "1.0.0",
|
||||
"description": "Comfy Cloud Ingest API TypeScript types and Zod schemas",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts",
|
||||
|
||||
Reference in New Issue
Block a user