From 7425da7d0d39418d965c02ddf0480c931a41c51e Mon Sep 17 00:00:00 2001 From: Vladyslav Kozin <36770161+kozinvl@users.noreply.github.com> Date: Sun, 28 Apr 2024 21:07:16 +0300 Subject: [PATCH] chore: cleanup config (#1) --- playwright.config.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/playwright.config.ts b/playwright.config.ts index 882cf26..589c8fb 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -1,34 +1,21 @@ import { defineConfig, devices } from "@playwright/test"; -/** - * Read environment variables from file. - * https://github.com/motdotla/dotenv - */ -// require('dotenv').config(); - -/** - * See https://playwright.dev/docs/test-configuration. - */ export default defineConfig({ timeout: 30 * 1000, testDir: "./tests", - /* Run tests in files in parallel */ fullyParallel: true, /* Fail the build on CI if you accidentally left test.only in the source code. */ forbidOnly: !!process.env.CI, - /* Retry on CI only */ retries: process.env.CI ? 2 : 0, - /* 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", /* 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('/')`. */ baseURL: "https://phptravels.net/", /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ trace: "on-first-retry", + headless: process.env.CI ? true : false, }, /* Configure projects for major browsers */