fix: resolve all lint errors in e2e tests and improve type safety
- Replace 'any' types with proper TypeScript interfaces in auth setup/teardown - Remove conflicting custom Playwright type declarations that were overriding official types - Fix ES module compatibility by replacing require() with proper import paths - Add proper generic typing to Playwright test fixtures - Fix test discovery in auth debug configuration - Add comprehensive auth debug setup documentation Fixes: - 3 lint warnings about explicit 'any' usage - 45+ TypeScript compilation errors from type conflicts - ES module import errors in auth configuration - Test fixture typing issues All e2e tests now pass lint and type checking with zero warnings.
This commit is contained in:
@@ -5,8 +5,8 @@ import { defineConfig, devices } from '@playwright/test';
|
||||
* Optimized for debugging auth flows with extended timeouts and detailed reporting
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: './tests/e2e',
|
||||
testMatch: '**/auth-debug.spec.ts',
|
||||
testDir: './',
|
||||
testMatch: 'tests/e2e/auth-debug.spec.ts',
|
||||
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: false, // Auth tests should run sequentially to avoid conflicts
|
||||
@@ -111,8 +111,8 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
/* Global setup and teardown */
|
||||
globalSetup: require.resolve('./auth-debug-setup.ts'),
|
||||
globalTeardown: require.resolve('./auth-debug-teardown.ts'),
|
||||
globalSetup: './auth-debug-setup.ts',
|
||||
globalTeardown: './auth-debug-teardown.ts',
|
||||
|
||||
/* Test timeout for auth operations */
|
||||
timeout: 60000, // 1 minute per test
|
||||
|
||||
Reference in New Issue
Block a user