-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaywright.config.js
More file actions
34 lines (30 loc) · 1.11 KB
/
playwright.config.js
File metadata and controls
34 lines (30 loc) · 1.11 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
require("dotenv").config();
const { defineConfig } = require("@playwright/test");
module.exports = defineConfig({
testDir: "./tests",
timeout: 30_000,
use: {
baseURL: process.env.BASE_URL, // solo API; sin fallback local a server
headless: true,
viewport: { width: 1280, height: 720 },
},
// Sin servidor web local; solo pruebas de API/endpoint
// 🔹 Configuración de reportes
reporter: [
["list"], // salida en consola
["json", { outputFile: "test-results/results.json" }], // 🧾 útil para Slack o CI
["html", { outputFolder: "playwright-report", open: "never" }], // 🌐 reporte Playwright (fallback)
[
"allure-playwright",
{
detail: true, // incluye steps internos de Playwright
outputFolder: "allure-results", // datos crudos; el HTML se genera en CI
suiteTitle: true, // usa el nombre del describe como Suite
environmentInfo: { // metadata visible en el panel Environment
node_version: process.version,
base_url: process.env.BASE_URL || "N/A",
},
},
],
],
});