@ai-support-agent/cli 0.2.4 → 0.2.5-beta.1
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.
|
@@ -220,7 +220,7 @@ async function runPlaywrightSubprocess(options) {
|
|
|
220
220
|
function spawnPlaywright(specFile, resultFile, baseUrl, timeoutMs, envVars, executionId) {
|
|
221
221
|
return new Promise((resolve, reject) => {
|
|
222
222
|
// Find the config file relative to the spec file's project root
|
|
223
|
-
const configFile = path.join(__dirname, '..', '..', 'playwright.subprocess.config.
|
|
223
|
+
const configFile = path.join(__dirname, '..', '..', 'playwright.subprocess.config.js');
|
|
224
224
|
const env = {
|
|
225
225
|
...process.env,
|
|
226
226
|
E2E_JSON_OUTPUT: resultFile,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-support-agent/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5-beta.1",
|
|
4
4
|
"description": "AI Support Agent CLI client",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
26
26
|
"docker",
|
|
27
|
+
"playwright.subprocess.config.js",
|
|
27
28
|
"LICENSE",
|
|
28
29
|
"README.md",
|
|
29
30
|
"CHANGELOG.md"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { defineConfig } = require('@playwright/test')
|
|
2
|
+
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
timeout: 120_000,
|
|
5
|
+
use: {
|
|
6
|
+
headless: true,
|
|
7
|
+
screenshot: 'only-on-failure',
|
|
8
|
+
trace: 'retain-on-failure',
|
|
9
|
+
baseURL: process.env.E2E_BASE_URL ?? 'http://localhost:3000',
|
|
10
|
+
},
|
|
11
|
+
reporter: [['json', { outputFile: process.env.E2E_JSON_OUTPUT ?? '/tmp/e2e-result.json' }]],
|
|
12
|
+
workers: 1,
|
|
13
|
+
})
|