mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-23 06:10:32 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user