refactor(tests): use DefaultGraphPositions constants for raw coordinates

- Replace hardcoded coordinates with DefaultGraphPositions references

- Fix y-coordinate inconsistency (625 vs 645) in emptyLatentWidgetClick usage

Amp-Thread-ID: https://ampcode.com/threads/T-019c161a-ed63-7545-bbd0-655efec143c4
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Alexander Brown
2026-01-31 14:39:22 -08:00
parent 2e58c77d9e
commit be427c325b
4 changed files with 26 additions and 15 deletions

View File

@@ -591,7 +591,10 @@ export class ComfyPage {
}
async dragNode2() {
await this.canvasOps.dragAndDrop({ x: 622, y: 400 }, { x: 622, y: 300 })
await this.canvasOps.dragAndDrop(DefaultGraphPositions.textEncodeNode2, {
x: DefaultGraphPositions.textEncodeNode2.x,
y: 300
})
await this.nextFrame()
}