fix: resolve require.resolve() in ES module Playwright config
Some checks failed
E2E Tests / Run E2E Tests (push) Has been cancelled
E2E Tests / Visual Regression Tests (push) Has been cancelled
E2E Tests / Smoke Tests (push) Has been cancelled

- Replace require.resolve() with plain string paths for globalSetup and globalTeardown
- This fixes compatibility with ES modules where require is not available

Tests now run successfully with all browsers (Chromium, Firefox, WebKit,
Mobile Chrome, Mobile Safari, Tablet)
This commit is contained in:
Luca Sacchi Ricciardi
2026-04-07 16:21:26 +02:00
parent baef924cfd
commit 69c25229ca
202 changed files with 2 additions and 211431 deletions

View File

@@ -107,6 +107,6 @@ export default defineConfig({
},
// Global setup and teardown
globalSetup: require.resolve('./e2e/global-setup.ts'),
globalTeardown: require.resolve('./e2e/global-teardown.ts'),
globalSetup: './e2e/global-setup.ts',
globalTeardown: './e2e/global-teardown.ts',
});