diff --git a/browser_tests/fixtures/ComfyPage.ts b/browser_tests/fixtures/ComfyPage.ts index 868cde55d..2febae814 100644 --- a/browser_tests/fixtures/ComfyPage.ts +++ b/browser_tests/fixtures/ComfyPage.ts @@ -1589,9 +1589,8 @@ export abstract class ComfyPage { } } -export const testComfySnapToGridGridSize = 50 - -// Re-export fixture from separate file to avoid circular dependencies +// Re-export shared constants and fixture +export { testComfySnapToGridGridSize } from './constants' export { comfyPageFixture } from './comfyPageFixture' const makeMatcher = function ( diff --git a/browser_tests/fixtures/comfyPageFixture.ts b/browser_tests/fixtures/comfyPageFixture.ts index bb74c4214..956fca386 100644 --- a/browser_tests/fixtures/comfyPageFixture.ts +++ b/browser_tests/fixtures/comfyPageFixture.ts @@ -2,8 +2,8 @@ import { test as base } from '@playwright/test' import { NodeBadgeMode } from '../../src/types/nodeSource' import type { ComfyPage } from './ComfyPage' -import { testComfySnapToGridGridSize } from './ComfyPage' import { ComfyMouse } from './ComfyMouse' +import { testComfySnapToGridGridSize } from './constants' import { LocalhostComfyPage } from './LocalhostComfyPage' /** diff --git a/browser_tests/fixtures/constants.ts b/browser_tests/fixtures/constants.ts new file mode 100644 index 000000000..3da3cd5a0 --- /dev/null +++ b/browser_tests/fixtures/constants.ts @@ -0,0 +1,4 @@ +/** + * Shared constants for browser tests + */ +export const testComfySnapToGridGridSize = 50