diff --git a/.claude/skills/writing-playwright-tests/core/nodes.md b/.claude/skills/writing-playwright-tests/core/nodes.md index 3b989b7d7..6605629e9 100644 --- a/.claude/skills/writing-playwright-tests/core/nodes.md +++ b/.claude/skills/writing-playwright-tests/core/nodes.md @@ -2,10 +2,10 @@ > **⚠️ LiteGraph Mode:** These patterns apply to the default LiteGraph canvas rendering. For Vue Nodes 2.0 (DOM-based rendering), see [vue-nodes.md](../features/vue-nodes.md). > -> | Mode | Node Access | Example | -> | --------- | -------------------------------------- | ---------------------------------------- | -> | LiteGraph | `comfyPage.getNodeRefsByTitle()[0]` | `node.click()`, `node.getWidget('seed')` | -> | Vue Nodes | `comfyPage.vueNodes.getNodeByTitle()` | Playwright locators, CSS classes | +> | Mode | Node Access | Example | +> | --------- | ------------------------------------- | ---------------------------------------- | +> | LiteGraph | `comfyPage.getNodeRefsByTitle()[0]` | `node.click()`, `node.getWidget('seed')` | +> | Vue Nodes | `comfyPage.vueNodes.getNodeByTitle()` | Playwright locators, CSS classes | ## Getting Node References diff --git a/.claude/skills/writing-playwright-tests/reference/fixtures.md b/.claude/skills/writing-playwright-tests/reference/fixtures.md index 83f9bc5fc..58e0b3e16 100644 --- a/.claude/skills/writing-playwright-tests/reference/fixtures.md +++ b/.claude/skills/writing-playwright-tests/reference/fixtures.md @@ -49,14 +49,14 @@ test('drag example', async ({ comfyPage, comfyMouse }) => { ### Nodes -| Method | Description | -| ---------------------------- | ---------------------------------------- | -| `getNodeRefsByTitle(title)` | Get nodes by display title (returns `[]`)| -| `getNodeRefById(id)` | Get node by numeric ID | -| `getFirstNode()` | Get first node | -| `getLastNode()` | Get last node | -| `getNodes()` | Get all nodes | -| `selectNodes(titles[])` | Ctrl+click to select nodes by title | +| Method | Description | +| --------------------------- | ----------------------------------------- | +| `getNodeRefsByTitle(title)` | Get nodes by display title (returns `[]`) | +| `getNodeRefById(id)` | Get node by numeric ID | +| `getFirstNode()` | Get first node | +| `getLastNode()` | Get last node | +| `getNodes()` | Get all nodes | +| `selectNodes(titles[])` | Ctrl+click to select nodes by title | **Node titles**: Use display names like `'KSampler'`, `'VAE Decode'`, `'CLIP Text Encode (Prompt)'`. These match the `display_name` from node definitions, not the internal type name.