fix: use runButton.click() instead of executeCommand for user action

Address review feedback from @christian-byrne: use user-action
pattern (clicking the run button) instead of invoking commands
directly.
This commit is contained in:
Glary-Bot
2026-04-19 23:33:48 +00:00
parent e9ac55af59
commit 7cdab5a212

View File

@@ -13,7 +13,7 @@ test.describe(
const previewNode = await comfyPage.nodeOps.getNodeRefById('2')
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await comfyPage.runButton.click()
await expect
.poll(async () => (await previewNode.getWidget(0)).getValue(), {
@@ -32,7 +32,7 @@ test.describe(
await comfyPage.page.keyboard.press('Control+a')
const subgraphNode = await sourceNode.convertToSubgraph()
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await comfyPage.runButton.click()
await subgraphNode.navigateIntoSubgraph()