at path:
ROOT
/
wp-content
/
plugins
/
elementor-pro
/
run-on-linux.js
run:
R
W
Run
assets
DIR
2025-12-13 10:13:38
R
W
Run
base
DIR
2025-12-13 10:17:21
R
W
Run
core
DIR
2025-12-13 10:17:22
R
W
Run
data
DIR
2025-12-13 10:17:21
R
W
Run
license
DIR
2025-12-13 10:17:21
R
W
Run
modules
DIR
2025-12-13 10:13:40
R
W
Run
sample-data
DIR
2025-12-13 10:17:22
R
W
Run
changelog.txt
178.69 KB
2024-10-19 01:21:21
R
W
Run
Delete
Rename
elementor-pro.php
7.48 KB
2024-10-19 01:21:21
R
W
Run
Delete
Rename
license.txt
919 By
2024-10-19 01:21:21
R
W
Run
Delete
Rename
plugin.php
12.96 KB
2024-10-19 01:21:22
R
W
Run
Delete
Rename
readme.txt
337 By
2024-10-19 01:21:22
R
W
Run
Delete
Rename
run-on-linux.js
1.11 KB
2024-10-19 01:21:22
R
W
Run
Delete
Rename
error_log
up
📄
run-on-linux.js
Save
const { spawn, exec } = require( 'child_process' ); const packageJson = require( './package.json' ); function isDockerExist() { return new Promise( ( resolve ) => { exec( 'docker -v', ( error ) => { resolve( ! error ); } ); } ); } async function run( tag ) { const playwrightVersion = packageJson.devDependencies[ '@playwright/test' ]; const workingDir = process.cwd(); const command = 'docker run'; const options = [ '--rm', '--network host', `--volume ${ workingDir }:/work`, '--workdir /work/', '--interactive', process.env.CI ? '' : '--tty', ]; const image = `mcr.microsoft.com/playwright:v${ playwrightVersion.replace( '^', '' ) }-jammy`; const commandToRun = `/bin/bash -c "npm run test:playwright -- --grep="${ tag }""`; spawn( `${ command } ${ options.join( ' ' ) } ${ image } ${ commandToRun }`, { stdio: 'inherit', stderr: 'inherit', shell: true, } ); } ( async () => { if ( ! await isDockerExist() ) { // eslint-disable-next-line no-console console.error( 'Docker is not installed, please install it first.' ); process.exit( 1 ); } await run( process.argv.slice( 2 ) ); } )();