Skip to content

Commit

Permalink
chore: cleanup config
Browse files Browse the repository at this point in the history
  • Loading branch information
kozinvl committed Apr 28, 2024
1 parent f9605f8 commit d8e031b
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down

0 comments on commit d8e031b

Please sign in to comment.