mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-31 21:42:49 +00:00
47 lines
967 B
JavaScript
47 lines
967 B
JavaScript
![]() |
const { defineConfig, devices } = require('@playwright/test');
|
||
|
|
||
|
/**
|
||
|
* @see https://playwright.dev/docs/test-configuration
|
||
|
*/
|
||
|
module.exports = defineConfig({
|
||
|
testDir: './editions/test/',
|
||
|
|
||
|
// Allow parallel tests
|
||
|
fullyParallel: true,
|
||
|
|
||
|
// Prevent accidentally committed "test.only" from wrecking havoc
|
||
|
forbidOnly: !!process.env.CI,
|
||
|
|
||
|
// Do not retry tests on failure
|
||
|
retries: 0,
|
||
|
|
||
|
// How many parallel workers
|
||
|
workers: process.env.CI ? 1 : undefined,
|
||
|
|
||
|
// Reporter to use. See https://playwright.dev/docs/test-reporters
|
||
|
reporter: 'html',
|
||
|
|
||
|
// Settings shared with all the tests
|
||
|
use: {
|
||
|
// Take a screenshot when the test fails
|
||
|
screenshot: {
|
||
|
mode: 'only-on-failure',
|
||
|
fullPage: true
|
||
|
}
|
||
|
},
|
||
|
|
||
|
/* Configure projects for major browsers */
|
||
|
projects: [
|
||
|
{
|
||
|
name: 'chromium',
|
||
|
use: { ...devices['Desktop Chrome'] },
|
||
|
},
|
||
|
|
||
|
{
|
||
|
name: 'firefox',
|
||
|
use: { ...devices['Desktop Firefox'] },
|
||
|
}
|
||
|
],
|
||
|
});
|
||
|
|