mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
refactor(tests): update global setup and teardown functions to accept FullConfig parameter for better integration with Playwright's testing framework
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import type { FullConfig } from '@playwright/test'
|
||||
|
||||
import { preprocessLitegraph } from './i18nSetup'
|
||||
|
||||
export default async function globalSetupWithI18n() {
|
||||
export default async function globalSetup(config: FullConfig) {
|
||||
await preprocessLitegraph()
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import { FullConfig } from '@playwright/test'
|
||||
|
||||
import { restoreLitegraph } from './i18nSetup'
|
||||
|
||||
export default async function globalTeardownWithI18n() {
|
||||
export default async function globalTeardown(config: FullConfig) {
|
||||
await restoreLitegraph()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user