mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-19 22:09:37 +00:00
fix: exclude known video names when renaming Playwright recordings
The AFTER step was renaming qa-before-session.webm instead of the new recording. Filter out already-named files before picking the latest.
This commit is contained in:
@@ -409,7 +409,10 @@ async function main() {
|
||||
// Rename the recorded video to expected filename
|
||||
const videoName =
|
||||
opts.mode === 'before' ? 'qa-before-session.webm' : 'qa-session.webm'
|
||||
const files = readdirSync(opts.outputDir).filter((f) => f.endsWith('.webm'))
|
||||
const knownNames = new Set(['qa-before-session.webm', 'qa-session.webm'])
|
||||
const files = readdirSync(opts.outputDir).filter(
|
||||
(f) => f.endsWith('.webm') && !knownNames.has(f)
|
||||
)
|
||||
if (files.length > 0) {
|
||||
const recorded = files[files.length - 1]
|
||||
renameSync(
|
||||
|
||||
Reference in New Issue
Block a user