mirror of
https://gh.wpcy.net/https://github.com/lubusIN/blablablocks-slider-block.git
synced 2026-07-13 20:26:24 +08:00
- Add Gallery, multi-image, and Columns transforms into Slider - Add Auto/Custom slides-per-view support and allow zero autoplay delay - Improve image slider media selection flow - Add theme-aware navigation and pagination color support - Add unit and E2E test coverage - Update release packaging to exclude dev files and include runtime assets
38 lines
1,019 B
JavaScript
38 lines
1,019 B
JavaScript
/**
|
|
* External dependencies
|
|
*/
|
|
const path = require( 'path' );
|
|
const { defineConfig, devices } = require( '@playwright/test' );
|
|
|
|
process.env.WP_ARTIFACTS_PATH ??= path.join( process.cwd(), 'artifacts' );
|
|
process.env.STORAGE_STATE_PATH ??= path.join(
|
|
process.env.WP_ARTIFACTS_PATH,
|
|
'storage-states/admin.json'
|
|
);
|
|
|
|
module.exports = defineConfig( {
|
|
testDir: './tests/e2e',
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: process.env.CI ? [ [ 'github' ] ] : [ [ 'list' ] ],
|
|
globalSetup: require.resolve(
|
|
'@wordpress/scripts/config/playwright/global-setup.js'
|
|
),
|
|
use: {
|
|
baseURL: process.env.WP_BASE_URL || 'http://localhost:10017',
|
|
storageState: process.env.STORAGE_STATE_PATH,
|
|
headless: true,
|
|
ignoreHTTPSErrors: true,
|
|
locale: 'en-US',
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chromium',
|
|
use: { ...devices[ 'Desktop Chrome' ] },
|
|
},
|
|
],
|
|
outputDir: path.join( process.env.WP_ARTIFACTS_PATH, 'test-results' ),
|
|
} );
|