mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
fix: use comfyPage.page.waitForTimeout for delay injection
The test uses comfyPageFixture, not bare page. Also match firstNode await calls for node interaction pauses. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1992,9 +1992,10 @@ async function main() {
|
||||
testCode.slice(insertPos)
|
||||
}
|
||||
// Inject 800ms pauses between actions for human-readable video
|
||||
// Uses comfyPage.page since test code uses comfyPageFixture
|
||||
testCode = testCode.replace(
|
||||
/(\n\s*)(await\s+(?:comfyPage|topbar|page|canvas|expect))/g,
|
||||
'$1await page.waitForTimeout(800);\n$1$2'
|
||||
/(\n\s*)(await\s+(?:comfyPage|topbar|firstNode|page|canvas|expect))/g,
|
||||
'$1await comfyPage.page.waitForTimeout(800);\n$1$2'
|
||||
)
|
||||
writeFileSync(browserTestFile, testCode)
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user