Skip to content

Commit

Permalink
Merge pull request #15 from maharrshi/first_branch
Browse files Browse the repository at this point in the history
headless enabled
  • Loading branch information
maharrshi authored Mar 3, 2024
2 parents ee50a5b + d8cd175 commit 87de85f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig, devices,PlaywrightTestConfig } from '@playwright/test';
import { defineConfig, devices, PlaywrightTestConfig } from "@playwright/test";

/**
* Read environment variables from file.
Expand All @@ -11,7 +11,7 @@ import { defineConfig, devices,PlaywrightTestConfig } from '@playwright/test';
*/

export default defineConfig({
testDir: './tests',
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. */
Expand All @@ -21,26 +21,24 @@ 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',
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: 'http://127.0.0.1:3000',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
headless:false,
trace: 'on-first-retry',
headless: true,
trace: "on-first-retry",
},

/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},



/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
Expand Down

0 comments on commit 87de85f

Please sign in to comment.