advanced-ads
Last commit date
admin
7 months ago
assets
6 months ago
classes
10 months ago
deprecated
1 year ago
includes
6 months ago
languages
6 months ago
modules
1 year ago
packages
6 months ago
public
1 year ago
upgrades
1 year ago
views
7 months ago
LICENSE.txt
12 years ago
advanced-ads.php
6 months ago
codeception.yml
1 year ago
dev.config.example.json
6 months ago
index.php
2 years ago
playwright.config.js
6 months ago
postcss.config.js
8 months ago
readme.txt
6 months ago
webpack.config.js
8 months ago
wp.advads
6 months ago
wpml-config.xml
7 years ago
playwright.config.js
22 lines
| 1 | import fs from 'node:fs'; |
| 2 | import path from 'node:path'; |
| 3 | import { defineConfig } from '@playwright/test'; |
| 4 | |
| 5 | // Load external config file. |
| 6 | let externalConfig = {}; |
| 7 | const jsonPath = path.resolve( './dev.config.json' ); |
| 8 | |
| 9 | if ( fs.existsSync( jsonPath ) ) { |
| 10 | externalConfig = JSON.parse( fs.readFileSync( jsonPath, 'utf8' ) ); |
| 11 | } |
| 12 | |
| 13 | export default defineConfig( { |
| 14 | name: 'Advanced Ads', |
| 15 | testDir: 'tests/acceptance', |
| 16 | use: { |
| 17 | baseURL: 'http://wp-ads.vm', |
| 18 | browserName: 'chromium', |
| 19 | ...externalConfig, |
| 20 | }, |
| 21 | } ); |
| 22 |