mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
ci: add pipeline to run tests on browsers (#6021)
This commit is contained in:
28
playwright.config.js
Normal file
28
playwright.config.js
Normal file
@@ -0,0 +1,28 @@
|
||||
const { devices } = require('@playwright/test');
|
||||
|
||||
module.exports = {
|
||||
retries: 0,
|
||||
testDir: './test',
|
||||
testMatch: '**/*.spec.js',
|
||||
use: {
|
||||
baseURL: 'http://localhost:9001',
|
||||
headless: true,
|
||||
},
|
||||
projects: [
|
||||
{ name: 'Chromium', use: { browserName: 'chromium' } },
|
||||
{ name: 'Firefox', use: { browserName: 'firefox' } },
|
||||
{ name: 'WebKit', use: { browserName: 'webkit' } },
|
||||
{
|
||||
name: 'Microsoft Edge',
|
||||
use: { browserName: 'chromium', channel: 'msedge' },
|
||||
},
|
||||
{
|
||||
name: 'Mobile Safari',
|
||||
use: { ...devices['iPhone 12'], browserName: 'webkit' },
|
||||
},
|
||||
{
|
||||
name: 'Mobile Chrome',
|
||||
use: { ...devices['Pixel 5'], browserName: 'chromium' },
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user