fix(ci): correct playwright config paths and add env example files
- Fix testDir path from './src/__tests__/e2e' to './e2e' - Fix globalSetup path from './src/__tests__/e2e/global.setup' to './e2e/global.setup' - Create .env.development.example with development database configuration - Update .gitignore to allow .env.example files to be tracked
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './src/__tests__/e2e',
|
||||
testDir: './e2e',
|
||||
timeout: 30000,
|
||||
expect: {
|
||||
timeout: 5000
|
||||
@@ -17,7 +17,7 @@ export default defineConfig({
|
||||
// Reporter to use
|
||||
reporter: 'html',
|
||||
// Global setup and teardown
|
||||
globalSetup: require.resolve('./src/__tests__/e2e/global.setup'),
|
||||
globalSetup: require.resolve('./e2e/global.setup'),
|
||||
// Use base URL for relative navigation
|
||||
use: {
|
||||
baseURL: 'http://localhost:3000',
|
||||
|
||||
Reference in New Issue
Block a user