mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
- Migrate error tab tests from dialog.spec.ts to propertiesPanel/errorsTab*.spec.ts - Migrate missingMedia.spec.ts to errorsTabMissingMedia.spec.ts - Add errorsTabMissingNodes.spec.ts (5 tests): card, packs group, expand/collapse, locate - Add errorsTabMissingModels.spec.ts (4 tests): group, model name, expand, clipboard copy - Add errorsTabExecution.spec.ts (2 tests): error card buttons, runtime panel - Add ErrorsTabHelper.ts with shared openErrorsTabViaSeeErrors helper - Add clipboardSpy.ts shared helper for clipboard.writeText interception - Add data-testid to MissingModelRow (expand, locate, copy-name) - Update missing_models.json fixture with 2 referencing nodes for expand tests - Consolidate errorOverlay.spec.ts into single top-level describe - Use PropertiesPanelHelper.errorsTabIcon in errorsTab.spec.ts
18 lines
553 B
TypeScript
18 lines
553 B
TypeScript
import { expect } from '@playwright/test'
|
|
|
|
import type { ComfyPage } from '../../fixtures/ComfyPage'
|
|
import { TestIds } from '../../fixtures/selectors'
|
|
|
|
export async function openErrorsTabViaSeeErrors(
|
|
comfyPage: ComfyPage,
|
|
workflow: string
|
|
) {
|
|
await comfyPage.workflow.loadWorkflow(workflow)
|
|
|
|
const errorOverlay = comfyPage.page.getByTestId(TestIds.dialogs.errorOverlay)
|
|
await expect(errorOverlay).toBeVisible()
|
|
|
|
await errorOverlay.getByTestId(TestIds.dialogs.errorOverlaySeeErrors).click()
|
|
await expect(errorOverlay).not.toBeVisible()
|
|
}
|