From ad111f007af59f0178e2de1266ae6c09171ebf97 Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 12 Sep 2025 00:49:12 +0000 Subject: [PATCH] refactor(tests): update global setup and teardown functions to accept FullConfig parameter for better integration with Playwright's testing framework --- browser_tests/globalSetupWithI18n.ts | 4 +++- browser_tests/globalTeardownWithI18n.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/browser_tests/globalSetupWithI18n.ts b/browser_tests/globalSetupWithI18n.ts index 7a6a0b293..4197c14bf 100644 --- a/browser_tests/globalSetupWithI18n.ts +++ b/browser_tests/globalSetupWithI18n.ts @@ -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() } diff --git a/browser_tests/globalTeardownWithI18n.ts b/browser_tests/globalTeardownWithI18n.ts index a8960695b..d6740e2d8 100644 --- a/browser_tests/globalTeardownWithI18n.ts +++ b/browser_tests/globalTeardownWithI18n.ts @@ -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() }