-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaywright.config.ts
50 lines (46 loc) · 1.16 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { defineConfig, devices } from '@playwright/test';
import { defineBddConfig } from 'playwright-bdd';
import * as dotenv from 'dotenv';
dotenv.config();
const testDir = defineBddConfig({
importTestFrom: 'src/fixtures/fixtures.ts',
paths: ['./src/features/contactUs.feature'],
require: ['./src/steps/contactUs.ts'],
});
export default defineConfig({
testDir,
reporter: [
["html", { open: false }],
[
'allure-playwright',
{
detail: true,
outputFolder: 'allure-results',
suiteTitle: false,
},
],
],
timeout: 60000,
use: {
headless: false,
viewport: { width: 1280, height: 720 },
actionTimeout: 10000,
navigationTimeout: 30000,
video: "on",
screenshot: "on",
contextOptions: {
recordVideo: {
dir: "./test-results/videos",
},
},
},
projects: [
{
name: 'GiantRocketship',
use: {
...devices['Desktop Chrome'],
headless: true,
},
},
],
});