mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 09:45:13 +00:00
fix: Improve i18n collection script setup
- Move setup-browser-globals import to top to fix location undefined error - Skip user setup for i18n tests to avoid duplicate user conflicts - Run i18n tests serially with workers=1 to prevent race conditions - Add unique test-based usernames for better test isolation
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import * as fs from 'fs'
|
||||
// Setup browser globals before any other imports that might use them
|
||||
import './setup-browser-globals.js'
|
||||
|
||||
import * as fs from 'fs'
|
||||
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'
|
||||
import { normalizeI18nKey } from '../src/utils/formatUtil'
|
||||
import './setup-browser-globals.js'
|
||||
|
||||
const localePath = './src/locales/en/main.json'
|
||||
const nodeDefsPath = './src/locales/en/nodeDefs.json'
|
||||
|
||||
Reference in New Issue
Block a user