forked from nginx/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
35 lines (34 loc) · 1005 Bytes
/
playwright.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: 'tests',
fullyParallel: true,
workers: 1,
outputDir: 'tests/test-results',
reporter: [['html', { outputFolder: 'tests/playwright-report' }]],
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
],
use: {
// Base URL to use in actions like `await page.goto('/')`.
baseURL: 'https://docs.nginx.com',
// Set Geolocation to Cork, Ireland
geolocation: { longitude: -8.486316, latitude: 51.896893 },
permissions: ['geolocation'],
video: 'retain-on-failure'
},
})