mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-12 02:08:25 +00:00
Resolve the manifest path from import.meta.url so tests are cwd-independent, and validate requiresGpu at manifest load. Reuse the centralized TestIds for the error overlay, error dialog, and templates dialog selectors. Extract the shared suite settings and templates-dialog dismissal into fixtures/utils/customNodeSuite so the three specs cannot drift. Rename spikeDesktop.spec.ts to coreSmoke.spec.ts to match its maintained purpose, document the full manifest schema in the README, and describe the gate outcome without a hardcoded test count.
17 lines
730 B
TypeScript
17 lines
730 B
TypeScript
import type { Locator, Page } from '@playwright/test'
|
|
|
|
import { TestIds } from '@e2e/fixtures/selectors'
|
|
|
|
// The app's user-visible error surfaces. A regression run is green only if a
|
|
// human looking at the screen would see zero errors - not merely a clean
|
|
// console. The harness self-check asserts the overlay IS visible after a
|
|
// forced execution error, so these selectors are permanently proven live.
|
|
export function errorSurfaces(page: Page): Record<string, Locator> {
|
|
return {
|
|
errorOverlay: page.getByTestId(TestIds.dialogs.errorOverlay),
|
|
errorDialog: page.getByTestId(TestIds.dialogs.errorDialog),
|
|
nodeRenderErrors: page.locator('.node-error'),
|
|
errorToasts: page.locator('.p-toast-message-error')
|
|
}
|
|
}
|