@probolabs/playwright 1.4.0-rc.3 โ 1.4.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/probo.js +5 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli.js +6 -4
- package/dist/cli.js.map +1 -1
- package/dist/fixtures.cjs.map +1 -1
- package/dist/fixtures.js.map +1 -1
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/test-suite-runner.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1656,7 +1656,6 @@ export default defineConfig({
|
|
|
1656
1656
|
// Keep Playwright's default console output, plus HTML report${includeReporter ? ', plus Probo live progress reporter' : ''}.
|
|
1657
1657
|
reporter: ${JSON.stringify(reporters)},
|
|
1658
1658
|
use: {
|
|
1659
|
-
headless: true,
|
|
1660
1659
|
ignoreHTTPSErrors: true,
|
|
1661
1660
|
actionTimeout: 30000,
|
|
1662
1661
|
navigationTimeout: 30000,
|
|
@@ -1665,7 +1664,6 @@ export default defineConfig({
|
|
|
1665
1664
|
trace: 'on',
|
|
1666
1665
|
},
|
|
1667
1666
|
retries: 0,
|
|
1668
|
-
workers: 1,
|
|
1669
1667
|
});
|
|
1670
1668
|
`;
|
|
1671
1669
|
}
|
|
@@ -6159,7 +6157,7 @@ class TestSuiteRunner {
|
|
|
6159
6157
|
* Generates files, installs dependencies, and executes tests
|
|
6160
6158
|
*/
|
|
6161
6159
|
static async runTestSuite(testSuiteId, apiToken, apiUrl, testSuiteName, runId, options = {}) {
|
|
6162
|
-
const { outputDir, includeReporter = true, onStatusUpdate, onStdout, onStderr, onReporterEvent, } = options;
|
|
6160
|
+
const { outputDir, includeReporter = true, playwrightArgs = [], onStatusUpdate, onStdout, onStderr, onReporterEvent, } = options;
|
|
6163
6161
|
const testSuiteDir = outputDir || getDefaultTestSuiteDir(testSuiteId, testSuiteName);
|
|
6164
6162
|
let currentRunId = runId;
|
|
6165
6163
|
try {
|
|
@@ -6238,6 +6236,9 @@ class TestSuiteRunner {
|
|
|
6238
6236
|
}
|
|
6239
6237
|
// Run Playwright tests with streaming output
|
|
6240
6238
|
console.log(`๐ Running Playwright tests in ${testSuiteDir}...`);
|
|
6239
|
+
if (playwrightArgs.length > 0) {
|
|
6240
|
+
console.log(`๐งช Playwright extra args: ${playwrightArgs.join(' ')}`);
|
|
6241
|
+
}
|
|
6241
6242
|
return new Promise(async (resolve) => {
|
|
6242
6243
|
var _a, _b;
|
|
6243
6244
|
let stdout = '';
|
|
@@ -6254,7 +6255,7 @@ class TestSuiteRunner {
|
|
|
6254
6255
|
let lastStepsUpdate = 0;
|
|
6255
6256
|
const collectedSteps = [];
|
|
6256
6257
|
// Use spawn for streaming output
|
|
6257
|
-
const testProcess = spawn('npx', ['playwright', 'test'], {
|
|
6258
|
+
const testProcess = spawn('npx', ['playwright', 'test', ...playwrightArgs], {
|
|
6258
6259
|
cwd: testSuiteDir,
|
|
6259
6260
|
shell: true,
|
|
6260
6261
|
stdio: ['ignore', 'pipe', 'pipe'],
|