diff --git a/browser_tests/fixtures/ComfyPageNoUser.ts b/browser_tests/fixtures/ComfyPageNoUser.ts deleted file mode 100644 index 8d9e6247d..000000000 --- a/browser_tests/fixtures/ComfyPageNoUser.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { test as base } from '@playwright/test' -import { ComfyPage } from './ComfyPage' - -/** - * Simplified fixture for i18n collection that doesn't require user setup - */ -export const comfyPageNoUserFixture = base.extend<{ - comfyPage: ComfyPage -}>({ - comfyPage: async ({ page, request }, use) => { - const comfyPage = new ComfyPage(page, request) - - // Navigate directly to the app without user setup - await comfyPage.goto() - - // Wait for the app to be fully initialized - await page.waitForFunction( - () => window['app']?.extensionManager !== undefined, - { timeout: 30000 } - ) - - // Use the page - await use(comfyPage) - } -}) - -export const test = comfyPageNoUserFixture \ No newline at end of file diff --git a/scripts/collect-i18n-general.ts b/scripts/collect-i18n-general.ts index ff3adcfbf..63d97d530 100644 --- a/scripts/collect-i18n-general.ts +++ b/scripts/collect-i18n-general.ts @@ -1,6 +1,6 @@ import * as fs from 'fs' -import { test } from '../browser_tests/fixtures/ComfyPageNoUser' +import { comfyPageFixture as test } from '../browser_tests/fixtures/ComfyPage' import { CORE_MENU_COMMANDS } from '../src/constants/coreMenuCommands' import { SERVER_CONFIG_ITEMS } from '../src/constants/serverConfig' import type { ComfyCommandImpl } from '../src/stores/commandStore' diff --git a/scripts/collect-i18n-node-defs.ts b/scripts/collect-i18n-node-defs.ts index e85aae6c0..11abd660f 100644 --- a/scripts/collect-i18n-node-defs.ts +++ b/scripts/collect-i18n-node-defs.ts @@ -1,6 +1,6 @@ import * as fs from 'fs' -import { test } from '../browser_tests/fixtures/ComfyPageNoUser' +import { comfyPageFixture as test } from '../browser_tests/fixtures/ComfyPage' import type { ComfyNodeDef } from '../src/schemas/nodeDefSchema' import type { ComfyApi } from '../src/scripts/api' import { ComfyNodeDefImpl } from '../src/stores/nodeDefStore' @@ -11,7 +11,7 @@ const nodeDefsPath = './src/locales/en/nodeDefs.json' test('collect-i18n-node-defs', async ({ comfyPage }) => { // Mock view route - comfyPage.page.route('**/view**', async (route) => { + await comfyPage.page.route('**/view**', async (route) => { await route.fulfill({ body: JSON.stringify({}) })