Genesis
This commit is contained in:
36
playwright.config.js
Normal file
36
playwright.config.js
Normal file
@@ -0,0 +1,36 @@
|
||||
const { devices } = require('playwright');
|
||||
|
||||
module.exports = {
|
||||
testDir: './tests',
|
||||
fullyParallel: true,
|
||||
forbidOnly: !!process.env.CI,
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
reporter: 'html',
|
||||
use: {
|
||||
trace: 'on-first-retry',
|
||||
},
|
||||
projects: [
|
||||
{
|
||||
name: 'Chrome',
|
||||
use: {
|
||||
...devices['Desktop Chrome'],
|
||||
viewport: { width: 1920, height: 1080 }
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'Mobile',
|
||||
use: {
|
||||
...devices['iPad'],
|
||||
viewport: { width: 768, height: 1024 }
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'MobileSmall',
|
||||
use: {
|
||||
...devices['iPhone 12'],
|
||||
viewport: { width: 390, height: 844 }
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user