refactor: playwright and tests in one folder

This commit is contained in:
ISA
2025-08-14 12:06:20 +02:00
parent bb68327604
commit 87cbdca79c
12 changed files with 136 additions and 180 deletions

View File

@@ -4,7 +4,7 @@ import { defineConfig, devices } from "@playwright/test";
* @see https://playwright.dev/docs/test-configuration
*/
export default defineConfig({
testDir: "./tests",
testDir: "./playwright/tests",
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
@@ -14,7 +14,11 @@ export default defineConfig({
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: "html",
// Write HTML reports to a single folder under ./playwright/report
reporter: [["html", { outputFolder: "playwright/report" }]],
/* Where to put test artifacts (screenshots, videos, traces, etc.) */
outputDir: "playwright/test-results",
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */