mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 21:22:07 +00:00
## Summary Add helpers for safely interacting with nodes that share the same title without hitting Playwright strict mode. ## Changes - **What**: Added `getNodesByTitle(title)` and `getNodeByTitleNth(title, index)` to `VueNodeHelpers`. Updated `docs/guidance/playwright.md` with a gotcha note about duplicate node names. ## Review Focus These are purely additive helpers — no existing behavior changes. `getNodesByTitle` returns all matching nodes (callers use `.nth()` to pick), and `getNodeByTitleNth` is a convenience wrapper. The existing `selectNodes(nodeIds)` by-ID method is unchanged. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-10666-feat-add-getNodesByTitle-and-getNodeByTitleNth-helpers-to-VueNodeHelpers-3316d73d3650812eabe6e56a768a34d2) by [Unito](https://www.unito.io)