The Focused, Split and Pair editors hide their widgets, and ComfyUI only draws a widget's input socket while the widget is visible. `text` (and the Pair's `negative_text`) therefore had no socket, and a STRING link dropped on the editor fell through to the first free STRING input, `prepend_text`, which is how #342's workflow was wired. - Detach those inputs from their hidden widgets on create and after a workflow load, so they are ordinary sockets in Classic and Nodes 2.0. The schema, widget order and saved values are unchanged. - A STRING link dropped on the editor body fills the main prompt, then the negative, before the frontend's own choice. - Each editor says when its text comes from a link; the typed text is kept for disconnect. The Classic nodes now save the typed text under a link instead of null, and "use prompt" no longer overwrites it while linked. - Real-host tests: mouse drags in both renderers, a workflow saved before this change, and executions proving the linked text is saved, counted, recorded in history and linked to the run's image. Closes #343
22 lines
1.1 KiB
JavaScript
22 lines
1.1 KiB
JavaScript
import { defineConfig } from './node_modules/@playwright/test/index.mjs';
|
|
|
|
if (!process.env.PM_COMFY_ROOT) throw new Error('Set PM_COMFY_ROOT to a pinned disposable ComfyUI checkout');
|
|
const host = new URL(process.env.PM_EXECUTION_URL || 'http://127.0.0.1:8196/');
|
|
if (host.href !== 'http://127.0.0.1:8196/') throw new Error('Execution tests require managed loopback http://127.0.0.1:8196/');
|
|
|
|
export default defineConfig({
|
|
testDir: '../../tests/comfyui',
|
|
testMatch: ['execution-history.spec.mjs', 'execution-outputs.spec.mjs', 'execution-text-link.spec.mjs', 'library-location.spec.mjs'],
|
|
outputDir: './test-results/executions/cases',
|
|
timeout: 60000,
|
|
workers: 1,
|
|
forbidOnly: Boolean(process.env.CI),
|
|
retries: 0,
|
|
use: { baseURL: host.href, browserName: 'chromium', viewport: { width: 1600, height: 1100 },
|
|
trace: 'retain-on-failure', screenshot: 'only-on-failure' },
|
|
projects: [
|
|
{ name: 'classic-start', metadata: { initialRenderer: false } },
|
|
{ name: 'nodes2-start', metadata: { initialRenderer: true } },
|
|
],
|
|
});
|