first commit
Playwright API test suite for payment/cashier endpoints, with per-environment config (dev/staging/prod) loaded via dotenv. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
24
playwright.config.ts
Normal file
24
playwright.config.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { defineConfig, devices } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
testDir: './src/tests',
|
||||
timeout: 120000, // 2 minutes per test
|
||||
expect: {
|
||||
timeout: 5000,
|
||||
},
|
||||
fullyParallel: true,
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
// Auto-open the HTML report after every run (set open: 'never' for CI)
|
||||
reporter: [['html', { open: process.env.CI ? 'never' : 'always' }]],
|
||||
use: {
|
||||
baseURL: 'https://www.babinnovations.com',
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: { ...devices['desktop-chromium'] },
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user