mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: escape single quotes in workflow name for template generation
Addresses review feedback: https://github.com/Comfy-Org/ComfyUI_frontend/pull/10694#discussion_r3005550592
This commit is contained in:
@@ -22,7 +22,7 @@ export function generateRecordingTemplate(
|
||||
const filePath = join(browserTestsDir, 'tests', `_recording-session.spec.ts`)
|
||||
|
||||
const workflowLine = options.workflow
|
||||
? ` // Load the selected workflow\n await comfyPage.workflow.loadWorkflow('${options.workflow}')\n await comfyPage.nextFrame()\n`
|
||||
? ` // Load the selected workflow\n await comfyPage.workflow.loadWorkflow('${options.workflow.replace(/'/g, "\\'")}')\n await comfyPage.nextFrame()\n`
|
||||
: ''
|
||||
|
||||
const code = `/**
|
||||
|
||||
Reference in New Issue
Block a user