test: add deprecation notices to legacy node click methods (Phase 4.5)

Amp-Thread-ID: https://ampcode.com/threads/T-019c1373-f6d0-7426-a3ee-5673891f9dcc
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-31 01:53:40 -08:00
parent aea5afa8f3
commit 4ffbcc7165

View File

@@ -26,8 +26,8 @@ import { KeyboardHelper } from './helpers/KeyboardHelper'
import { NodeOperationsHelper } from './helpers/NodeOperationsHelper'
import { SettingsHelper } from './helpers/SettingsHelper'
import { SubgraphHelper } from './helpers/SubgraphHelper'
import { WorkflowHelper } from './helpers/WorkflowHelper';
import type { FolderStructure } from './helpers/WorkflowHelper';
import { WorkflowHelper } from './helpers/WorkflowHelper'
import type { FolderStructure } from './helpers/WorkflowHelper'
import type { Position } from './types'
import type { NodeReference } from './utils/litegraphUtils'
@@ -473,6 +473,13 @@ export class ComfyPage {
.catch(() => {})
}
/**
* @deprecated Use NodeReference pattern instead:
* ```
* const node = await comfyPage.nodeOps.getNodeRefByTitle('CLIP Text Encode (Prompt)');
* await node.click();
* ```
*/
async clickTextEncodeNode1() {
await this.canvas.click({
position: DefaultGraphPositions.textEncodeNode1
@@ -480,6 +487,13 @@ export class ComfyPage {
await this.nextFrame()
}
/**
* @deprecated Use NodeReference pattern instead:
* ```
* const node = await comfyPage.nodeOps.getNodeRefByTitle('CLIP Text Encode (Prompt)');
* await node.clickToggler();
* ```
*/
async clickTextEncodeNodeToggler() {
await this.canvas.click({
position: DefaultGraphPositions.textEncodeNodeToggler
@@ -487,6 +501,13 @@ export class ComfyPage {
await this.nextFrame()
}
/**
* @deprecated Use NodeReference pattern instead:
* ```
* const node = await comfyPage.nodeOps.getNodeRefByTitle('CLIP Text Encode (Prompt)');
* await node.click();
* ```
*/
async clickTextEncodeNode2() {
await this.canvas.click({
position: DefaultGraphPositions.textEncodeNode2
@@ -729,6 +750,13 @@ export class ComfyPage {
await this.nextFrame()
}
/**
* @deprecated Use NodeReference pattern instead:
* ```
* const node = await comfyPage.nodeOps.getNodeRefByTitle('Empty Latent Image');
* await node.click();
* ```
*/
async clickEmptyLatentNode() {
await this.canvas.click({
position: {
@@ -740,6 +768,13 @@ export class ComfyPage {
await this.nextFrame()
}
/**
* @deprecated Use NodeReference pattern instead:
* ```
* const node = await comfyPage.nodeOps.getNodeRefByTitle('Empty Latent Image');
* await node.rightClick();
* ```
*/
async rightClickEmptyLatentNode() {
await this.canvas.click({
position: {