/** * E2E tests: Legacy Manager Menu Dialog. * * Verifies that the legacy UI manager menu opens correctly, renders * all expected controls, and that settings dropdowns round-trip through * the server API. * * Requires ComfyUI running with --enable-manager-legacy-ui on PORT. */ import { test, expect } from '@playwright/test'; import { waitForComfyUI, openManagerMenu, assertManagerMenuVisible, closeDialog } from './helpers'; test.describe('Manager Menu Dialog', () => { test.beforeEach(async ({ page }) => { await page.goto('/'); await waitForComfyUI(page); }); test('opens via Manager button and shows 3-column layout', async ({ page }) => { await openManagerMenu(page); await assertManagerMenuVisible(page); // The dialog should contain known buttons const dialog = page.locator('#cm-manager-dialog').first(); await expect(dialog.locator('button:has-text("Custom Nodes Manager")')).toBeVisible(); await expect(dialog.locator('button:has-text("Model Manager")')).toBeVisible(); await expect(dialog.locator('button:has-text("Restart")')).toBeVisible(); }); test('shows DB mode and Update Policy dropdowns', async ({ page }) => { // WI-OO Item 3 (bloat dev:ci-022 B8 title-mismatch): renamed from // "shows settings dropdowns (DB, Channel, Policy)". The original title // promised three dropdowns but the body only asserted DB + Policy; in // this legacy-UI build the channel combo is populated via a separate // code path and is not reliably surfaced as a