create-playwright
Advanced tools
Comparing version 1.17.0-1636659526000 to 1.17.0-1636674774000
@@ -10,15 +10,10 @@ // @ts-check | ||
const config = { | ||
// Timeout per test | ||
timeout: 30 * 1000, | ||
// Test directory | ||
testDir: path.join(__dirname, '{{testDir}}'), | ||
// If a test fails on CI, retry it additional 2 times | ||
retries: process.env.CI ? 2 : 0, | ||
// Artifacts folder where screenshots, videos, and traces are stored. | ||
outputDir: 'test-results/', | ||
testDir: path.join(__dirname, '{{testDir}}'), /* Test directory */ | ||
forbidOnly: !!process.env.CI, /* Whether to exit with an error if any tests or groups are marked as test.only() or test.describe.only(). Useful on CI. */ | ||
retries: process.env.CI ? 2 : 0, /* If a test fails on CI, retry it additional 2 times */ | ||
// timeout: 30 * 1000, /* Timeout per test */ | ||
// outputDir: 'test-results/', /* Artifacts folder where screenshots, videos, and traces are stored. */ | ||
// Run your local dev server before starting the tests: | ||
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests | ||
// webServer: { | ||
// command: 'npm run start', | ||
// webServer: { /* Run your local dev server before starting the tests: */ | ||
// command: 'npm run start', /* https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests */ | ||
// port: 3000, | ||
@@ -28,10 +23,6 @@ // }, | ||
use: { | ||
// Retry a test if its failing with enabled tracing. This allows you to analyse the DOM, console logs, network traffic etc. | ||
// More information: https://playwright.dev/docs/trace-viewer | ||
trace: 'on-first-retry', | ||
// All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context | ||
contextOptions: { | ||
ignoreHTTPSErrors: true, | ||
}, | ||
trace: 'on-first-retry', /* Retry a test if its failing with enabled tracing. This allows you to analyse the DOM, console logs, network traffic etc. */ | ||
// contextOptions: { /* All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context */ | ||
// ignoreHTTPSErrors: true, | ||
// }, | ||
}, | ||
@@ -41,3 +32,3 @@ | ||
{ | ||
name: 'Desktop Chrome', | ||
name: 'chromium', | ||
use: { | ||
@@ -48,3 +39,3 @@ ...devices['Desktop Chrome'], | ||
{ | ||
name: 'Desktop Firefox', | ||
name: 'firefox', | ||
use: { | ||
@@ -55,3 +46,3 @@ ...devices['Desktop Firefox'], | ||
{ | ||
name: 'Desktop Safari', | ||
name: 'webkit', | ||
use: { | ||
@@ -61,15 +52,15 @@ ...devices['Desktop Safari'], | ||
}, | ||
// Test against mobile viewports. | ||
{ | ||
name: 'Mobile Chrome', | ||
use: { | ||
...devices['Pixel 5'], | ||
}, | ||
}, | ||
{ | ||
name: 'Mobile Safari', | ||
use: devices['iPhone 12'], | ||
}, | ||
/* Test against mobile viewports. */ | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { | ||
// ...devices['Pixel 5'], | ||
// }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: devices['iPhone 12'], | ||
// }, | ||
], | ||
}; | ||
module.exports = config; |
@@ -6,15 +6,10 @@ import { PlaywrightTestConfig, devices } from '@playwright/test'; | ||
const config: PlaywrightTestConfig = { | ||
// Timeout per test | ||
timeout: 30 * 1000, | ||
// Test directory | ||
testDir: path.join(__dirname, '{{testDir}}'), | ||
// If a test fails on CI, retry it additional 2 times | ||
retries: process.env.CI ? 2 : 0, | ||
// Artifacts folder where screenshots, videos, and traces are stored. | ||
outputDir: 'test-results/', | ||
testDir: path.join(__dirname, '{{testDir}}'), /* Test directory */ | ||
forbidOnly: !!process.env.CI, /* Whether to exit with an error if any tests or groups are marked as test.only() or test.describe.only(). Useful on CI. */ | ||
retries: process.env.CI ? 2 : 0, /* If a test fails on CI, retry it additional 2 times */ | ||
// timeout: 30 * 1000, /* Timeout per test */ | ||
// outputDir: 'test-results/', /* Artifacts folder where screenshots, videos, and traces are stored. */ | ||
// Run your local dev server before starting the tests: | ||
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests | ||
// webServer: { | ||
// command: 'npm run start', | ||
// webServer: { /* Run your local dev server before starting the tests: */ | ||
// command: 'npm run start', /* https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests */ | ||
// port: 3000, | ||
@@ -24,10 +19,6 @@ // }, | ||
use: { | ||
// Retry a test if its failing with enabled tracing. This allows you to analyse the DOM, console logs, network traffic etc. | ||
// More information: https://playwright.dev/docs/trace-viewer | ||
trace: 'on-first-retry', | ||
// All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context | ||
contextOptions: { | ||
ignoreHTTPSErrors: true, | ||
}, | ||
trace: 'on-first-retry', /* Retry a test if its failing with enabled tracing (analyse the DOM, console logs, network traffic): https://playwright.dev/docs/trace-viewer */ | ||
// contextOptions: { /* All available context options: https://playwright.dev/docs/api/class-browser#browser-new-context */ | ||
// ignoreHTTPSErrors: true, | ||
// }, | ||
}, | ||
@@ -37,3 +28,3 @@ | ||
{ | ||
name: 'Desktop Chrome', | ||
name: 'chromium', | ||
use: { | ||
@@ -44,3 +35,3 @@ ...devices['Desktop Chrome'], | ||
{ | ||
name: 'Desktop Firefox', | ||
name: 'firefox', | ||
use: { | ||
@@ -51,3 +42,3 @@ ...devices['Desktop Firefox'], | ||
{ | ||
name: 'Desktop Safari', | ||
name: 'webkit', | ||
use: { | ||
@@ -57,15 +48,15 @@ ...devices['Desktop Safari'], | ||
}, | ||
// Test against mobile viewports. | ||
{ | ||
name: 'Mobile Chrome', | ||
use: { | ||
...devices['Pixel 5'], | ||
}, | ||
}, | ||
{ | ||
name: 'Mobile Safari', | ||
use: devices['iPhone 12'], | ||
}, | ||
/* Test against mobile viewports. */ | ||
// { | ||
// name: 'Mobile Chrome', | ||
// use: { | ||
// ...devices['Pixel 5'], | ||
// }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: devices['iPhone 12'], | ||
// }, | ||
], | ||
}; | ||
export default config; |
{ | ||
"name": "create-playwright", | ||
"version": "1.17.0-1636659526000", | ||
"version": "1.17.0-1636674774000", | ||
"description": "Getting started with writing end-to-end tests with Playwright.", | ||
@@ -5,0 +5,0 @@ "repository": "github:Microsoft/playwright", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
110298
518
15