-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtpl-playwright.config.js
More file actions
73 lines (69 loc) · 1.75 KB
/
tpl-playwright.config.js
File metadata and controls
73 lines (69 loc) · 1.75 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// @ts-check
const { defineConfig, devices } = require("@playwright/test");
import * as os from "node:os";
const fs = require("fs-extra");
// Limpia la carpeta allure-results antes de cada ejecución
fs.emptyDirSync('allure-results');
module.exports = defineConfig({
testDir: "./tests",
fullyParallel: true,
forbidOnly: !!process.env.CI,
repeatEach: 1,
retries: process.env.CI ? 3 : 3,
workers: Math.min(os.cpus().length, 5),
reporter: [
["line"],
["list", { printSteps: true }],
["html", { outputFolder: "playwright-report" }],
[
"allure-playwright",
{
detail: true,
outputFolder: "allure-results",
suiteTitle: true,
categories: [
{
name: "Outdated tests",
messageRegex: ".*FileNotFound.*",
},
],
environmentInfo: {
framework: "Automatizacion de Pruebas con Playwright",
os_platform: os.platform(),
os_release: os.release(),
os_version: os.version(),
node_version: process.version,
},
},
],
],
use: {
headless: true,
trace: "on-first-retry",
},
/* Configure projects for major browsers */
projects: [
{
name: "c",
use: {
...devices["Desktop Chrome"],
channel: "chrome",
viewport: { width: 1920, height: 1080 },
launchOptions: {
args: ["--ignore-certificate-errors", "--start-maximized"],
},
},
},/*
{
name: "Firefox",
use: {
...devices["Desktop Firefox"],
channel: "firefox",
viewport: { width: 1920, height: 1080 },
launchOptions: {
args: ["--ignore-certificate-errors", "--start-maximized"],
},
},
},*/
],
});