Files
ComfyUI_frontend/browser_tests/fixtures/helpers/SubgraphHelper.ts
Alexander Brown f82ffe09d5 [backport core/1.41] test: subgraph integration contracts and expanded Playwright coverage (#10326)
Backport of #10123, #9967, and #9972 to `core/1.41`

Includes three cherry-picks in dependency order:
1. #9972 — `fix: resolve all lint warnings` (clean cherry-pick)
2. #9967 — `test: harden subgraph test coverage and remove low-value
tests` (clean after #9972)
3. #10123 — `test: subgraph integration contracts and expanded
Playwright coverage` (2 conflicts resolved)

**Conflict resolutions:**
- `src/core/graph/subgraph/promotionUtils.ts`: Added
`refreshPromotedWidgetRendering()` calls from PR; omitted Sentry
breadcrumbs (already removed on `core/1.41`); added
`PromotedWidgetSource` type import and `hasUnpromotedWidgets` function.
- `browser_tests/tests/subgraphPromotion.spec.ts`: Replaced local
`exitSubgraphViaBreadcrumb`/`isInSubgraph` helpers with
`comfyPage.subgraph.exitViaBreadcrumb()` from SubgraphHelper.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-10326-backport-core-1-41-test-subgraph-integration-contracts-and-expanded-Playwright-covera-3296d73d3650819ea794f0fcb290a410)
by [Unito](https://www.unito.io)

---------

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: bymyself <cbyrne@comfy.org>
Co-authored-by: GitHub Action <action@github.com>
2026-03-19 17:45:22 -07:00

14 KiB