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 ) ); } )(); {"translation-revision-date":"2025-04-16 23:11:08+0000","generator":"GlotPress\/4.0.1","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural-forms":"nplurals=2; plural=n > 1;","lang":"tr"},"Non breaking space":["B\u00f6l\u00fcnemez bo\u015fluk"],"https:\/\/www.w3.org\/WAI\/tutorials\/images\/decision-tree\/":["https:\/\/www.w3.org\/WAI\/tutorials\/images\/decision-tree\/"],"Mark as nofollow":["nofollow olarak i\u015faretle"],"Text direction":["Metin y\u00f6n\u00fc"],"A valid language attribute, like \"en\" or \"fr\".":["\"en\" ya da \"fr\" gibi ge\u00e7erli bir dil \u00f6zniteli\u011fi."],"Leave empty if decorative.":["Dekoratif ise bo\u015f b\u0131rak\u0131n."],"Clear Unknown Formatting":["Bilinmeyen bi\u00e7imlendirmeyi temizle"],"Create page: %s<\/mark>":["Sayfa olu\u015ftur: %s<\/mark>"],"Highlight":["Vurgula"],"Keyboard input":["Klavye giri\u015fi"],"Inline code":["Sat\u0131r i\u00e7i kod"],"Describe the purpose of the image.":["G\u00f6rselin amac\u0131n\u0131 a\u00e7\u0131klay\u0131n."],"Link edited.":["Ba\u011flant\u0131 d\u00fczenlendi."],"Link removed.":["Ba\u011flant\u0131 kald\u0131r\u0131ld\u0131."],"Inline image":["Sat\u0131r i\u00e7i g\u00f6rsel"],"media":["ortam"],"photo":["foto\u011fraf"],"Warning: the link has been inserted but may have errors. Please test it.":["Uyar\u0131: Ba\u011flant\u0131 eklendi fakat sorun olabilir. L\u00fctfen deneyin."],"Link inserted.":["Ba\u011flant\u0131 eklendi."],"Left to right":["Soldan sa\u011fa"],"Right to left":["Sa\u011fdan sola"],"Link":["Ba\u011flant\u0131"],"Background":["Arkaplan"],"Superscript":["\u00dcst simge"],"Subscript":["Alt simge"],"Strikethrough":["\u00dczeri \u00e7izili"],"Underline":["Alt\u0131 \u00e7izgili"],"Italic":["E\u011fik"],"Bold":["Kal\u0131n"],"Language":["Dil"],"Text":["Metin"],"Width":["Geni\u015flik"],"Alternative text":["Alternatif metin"],"Apply":["Uygula"]}},"comment":{"reference":"wp-includes\/js\/dist\/format-library.js"}}