create-playwright
Advanced tools
Comparing version 1.17.125 to 1.17.126
// @ts-check | ||
const { devices } = require('{{ctPackageName}}'); | ||
const { defineConfig, devices } = require('{{ctPackageName}}'); | ||
/** | ||
* @see https://playwright.dev/docs/test-configuration | ||
* @type {import('{{ctPackageName}}').PlaywrightTestConfig} | ||
*/ | ||
const config = { | ||
module.exports = defineConfig({ | ||
testDir: './{{testDir}}', | ||
@@ -37,21 +36,13 @@ /* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */ | ||
name: 'chromium', | ||
use: { | ||
...devices['Desktop Chrome'], | ||
}, | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
{ | ||
name: 'firefox', | ||
use: { | ||
...devices['Desktop Firefox'], | ||
}, | ||
use: { ...devices['Desktop Firefox'] }, | ||
}, | ||
{ | ||
name: 'webkit', | ||
use: { | ||
...devices['Desktop Safari'], | ||
}, | ||
use: { ...devices['Desktop Safari'] }, | ||
}, | ||
], | ||
}; | ||
module.exports = config; | ||
}); |
@@ -1,3 +0,2 @@ | ||
import type { PlaywrightTestConfig } from '{{ctPackageName}}'; | ||
import { devices } from '{{ctPackageName}}'; | ||
import { defineConfig, devices } from '{{ctPackageName}}'; | ||
@@ -7,3 +6,3 @@ /** | ||
*/ | ||
const config: PlaywrightTestConfig = { | ||
export default defineConfig({ | ||
testDir: './{{testDir}}', | ||
@@ -37,21 +36,13 @@ /* The base directory, relative to the config file, for snapshot files created with toMatchSnapshot and toHaveScreenshot. */ | ||
name: 'chromium', | ||
use: { | ||
...devices['Desktop Chrome'], | ||
}, | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
{ | ||
name: 'firefox', | ||
use: { | ||
...devices['Desktop Firefox'], | ||
}, | ||
use: { ...devices['Desktop Firefox'] }, | ||
}, | ||
{ | ||
name: 'webkit', | ||
use: { | ||
...devices['Desktop Safari'], | ||
}, | ||
use: { ...devices['Desktop Safari'] }, | ||
}, | ||
], | ||
}; | ||
export default config; | ||
}); |
// @ts-check | ||
const { devices } = require('@playwright/test'); | ||
const { defineConfig, devices } = require('@playwright/test'); | ||
@@ -10,8 +10,6 @@ /** | ||
/** | ||
* @see https://playwright.dev/docs/test-configuration | ||
* @type {import('@playwright/test').PlaywrightTestConfig} | ||
*/ | ||
const config = { | ||
module.exports = defineConfig({ | ||
testDir: './{{testDir}}', | ||
@@ -53,5 +51,3 @@ /* Maximum time one test can run for. */ | ||
name: 'chromium', | ||
use: { | ||
...devices['Desktop Chrome'], | ||
}, | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
@@ -63,5 +59,3 @@ //--end-chromium | ||
name: 'firefox', | ||
use: { | ||
...devices['Desktop Firefox'], | ||
}, | ||
use: { ...devices['Desktop Firefox'] }, | ||
}, | ||
@@ -73,5 +67,3 @@ //--end-firefox | ||
name: 'webkit', | ||
use: { | ||
...devices['Desktop Safari'], | ||
}, | ||
use: { ...devices['Desktop Safari'] }, | ||
}, | ||
@@ -83,11 +75,7 @@ //--end-webkit | ||
// name: 'Mobile Chrome', | ||
// use: { | ||
// ...devices['Pixel 5'], | ||
// }, | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { | ||
// ...devices['iPhone 12'], | ||
// }, | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
@@ -98,11 +86,7 @@ | ||
// name: 'Microsoft Edge', | ||
// use: { | ||
// channel: 'msedge', | ||
// }, | ||
// use: { channel: 'msedge' }, | ||
// }, | ||
// { | ||
// name: 'Google Chrome', | ||
// use: { | ||
// channel: 'chrome', | ||
// }, | ||
// use: { channel: 'chrome' }, | ||
// }, | ||
@@ -119,4 +103,3 @@ ], | ||
// }, | ||
}; | ||
}); | ||
module.exports = config; |
@@ -1,3 +0,2 @@ | ||
import type { PlaywrightTestConfig } from '@playwright/test'; | ||
import { devices } from '@playwright/test'; | ||
import { defineConfig, devices } from '@playwright/test'; | ||
@@ -13,3 +12,3 @@ /** | ||
*/ | ||
const config: PlaywrightTestConfig = { | ||
export default defineConfig({ | ||
testDir: './{{testDir}}', | ||
@@ -51,5 +50,3 @@ /* Maximum time one test can run for. */ | ||
name: 'chromium', | ||
use: { | ||
...devices['Desktop Chrome'], | ||
}, | ||
use: { ...devices['Desktop Chrome'] }, | ||
}, | ||
@@ -61,5 +58,3 @@ //--end-chromium | ||
name: 'firefox', | ||
use: { | ||
...devices['Desktop Firefox'], | ||
}, | ||
use: { ...devices['Desktop Firefox'] }, | ||
}, | ||
@@ -71,5 +66,3 @@ //--end-firefox | ||
name: 'webkit', | ||
use: { | ||
...devices['Desktop Safari'], | ||
}, | ||
use: { ...devices['Desktop Safari'] }, | ||
}, | ||
@@ -81,11 +74,7 @@ //--end-webkit | ||
// name: 'Mobile Chrome', | ||
// use: { | ||
// ...devices['Pixel 5'], | ||
// }, | ||
// use: { ...devices['Pixel 5'] }, | ||
// }, | ||
// { | ||
// name: 'Mobile Safari', | ||
// use: { | ||
// ...devices['iPhone 12'], | ||
// }, | ||
// use: { ...devices['iPhone 12'] }, | ||
// }, | ||
@@ -96,11 +85,7 @@ | ||
// name: 'Microsoft Edge', | ||
// use: { | ||
// channel: 'msedge', | ||
// }, | ||
// use: { channel: 'msedge' }, | ||
// }, | ||
// { | ||
// name: 'Google Chrome', | ||
// use: { | ||
// channel: 'chrome', | ||
// }, | ||
// use: { channel: 'chrome' }, | ||
// }, | ||
@@ -117,4 +102,2 @@ ], | ||
// }, | ||
}; | ||
export default config; | ||
}); |
{ | ||
"name": "create-playwright", | ||
"version": "1.17.125", | ||
"version": "1.17.126", | ||
"description": "Getting started with writing end-to-end tests with Playwright.", | ||
@@ -25,3 +25,3 @@ "repository": "github:Microsoft/playwright", | ||
"devDependencies": { | ||
"@playwright/test": "^1.27.0", | ||
"@playwright/test": "^1.30.0", | ||
"@types/node": "^16.11.11", | ||
@@ -28,0 +28,0 @@ "ansi-colors": "^4.1.1", |
Sorry, the diff of this file is too big to display
210050
5908