[fix] Remove dynamic import timing issue causing Playwright test flakiness (#4031)

This commit is contained in:
Christian Byrne
2025-05-30 21:01:13 -07:00
committed by GitHub
parent aca1a2a194
commit afac449f41

View File

@@ -52,6 +52,7 @@ import type { ComfyExtension, MissingNodeType } from '@/types/comfy'
import { ExtensionManager } from '@/types/extensionTypes'
import { ColorAdjustOptions, adjustColor } from '@/utils/colorUtil'
import { graphToPrompt } from '@/utils/executionUtil'
import { getFileHandler } from '@/utils/fileHandlers'
import {
executeWidgetsCallback,
fixLinkInputSlots,
@@ -1262,7 +1263,6 @@ export class ComfyApp {
* @param {File} file
*/
async handleFile(file: File) {
const { getFileHandler } = await import('@/utils/fileHandlers')
const removeExt = (f: string) => {
if (!f) return f
const p = f.lastIndexOf('.')