premier push
This commit is contained in:
41
playwright.config.ts
Normal file
41
playwright.config.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import { defineConfig } from '@playwright/test';
|
||||
|
||||
export default defineConfig({
|
||||
|
||||
testDir: './tests',
|
||||
timeout: 120000, // 120s par test
|
||||
expect: { timeout: 10000 },
|
||||
workers: process.env.CI? 1: undefined,
|
||||
retries: process.env.CI? 2: 0,
|
||||
|
||||
use: {
|
||||
screenshot : 'only-on-failure',
|
||||
trace: 'on-first-retry',
|
||||
video: 'retain-on-failure',
|
||||
baseURL: 'https://127.0.0.1:8090/localweb/ASPlateforme',
|
||||
headless: false,
|
||||
viewport: { width: 1280, height: 720 },
|
||||
ignoreHTTPSErrors: true,
|
||||
actionTimeout: 30000,
|
||||
navigationTimeout: 60000,
|
||||
lanchOptions: {
|
||||
args: [
|
||||
'--disable-gpu',
|
||||
'--disable-dey-shm-usage',
|
||||
'--no-sandbox',
|
||||
'--disable-extensions',
|
||||
'--disable-background-networking',
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
reporter: [
|
||||
['list'],
|
||||
['junit', { outputFile: 'junit/results.xml' }],
|
||||
['html', { open: 'never', outputFolder: 'playwright-report' }],
|
||||
['allure-playwright']
|
||||
],
|
||||
|
||||
outputDir: 'reports/artifacts',
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user