Added demo playwright config
This commit is contained in:
1 file changed
+27
@@ -0,0 +1,27 @@
|
||||
// playwright.config.js
|
||||
// @ts-check
|
||||
// import { devices } from '@playwright/test';
|
||||
|
||||
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
||||
const config = {
|
||||
webServer: {
|
||||
command: 'npm run build && npm run start',
|
||||
port: 3000
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'chromium',
|
||||
use: {
|
||||
channel: 'chromium',
|
||||
browserName: 'chromium',
|
||||
headless: true,
|
||||
launchOptions: {
|
||||
args:
|
||||
['--headless', '--disable-gpu', '--no-sandbox']
|
||||
},
|
||||
}
|
||||
}
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in new issue
Block a user