@arcadialdev/arcality 2.4.20 → 2.4.22
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/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcadialdev/arcality",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.22",
|
|
4
4
|
"description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "node scripts/gen-and-run.mjs",
|
|
8
8
|
"arcality": "node scripts/gen-and-run.mjs",
|
|
9
9
|
"postinstall": "node scripts/postinstall.mjs",
|
|
10
|
-
"setup": "node scripts/setup.mjs"
|
|
10
|
+
"setup": "node scripts/setup.mjs",
|
|
11
|
+
"build:runner": "npx esbuild tests/_helpers/agentic-runner.spec.ts --bundle --platform=node --target=node18 --format=cjs --external:@playwright/test --external:chalk --external:dotenv --external:node-fetch --external:js-yaml --external:axios --external:crypto --external:fs --external:path --outfile=tests/_helpers/agentic-runner.bundle.spec.js",
|
|
12
|
+
"prepublishOnly": "npm run build:runner"
|
|
11
13
|
},
|
|
12
14
|
"bin": {
|
|
13
15
|
"arcality": "bin/arcality.mjs"
|
|
@@ -47,7 +49,8 @@
|
|
|
47
49
|
"devDependencies": {
|
|
48
50
|
"@types/figlet": "^1.7.0",
|
|
49
51
|
"@types/node": "^25.0.9",
|
|
50
|
-
"@types/prompts": "^2.4.9"
|
|
52
|
+
"@types/prompts": "^2.4.9",
|
|
53
|
+
"esbuild": "^0.20.2"
|
|
51
54
|
},
|
|
52
55
|
"dependencies": {
|
|
53
56
|
"@clack/prompts": "^1.0.1",
|
package/playwright.config.js
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
|
-
// playwright.config.js
|
|
2
|
-
'use strict';
|
|
3
|
-
const { defineConfig, devices } = require('@playwright/test');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
// playwright.config.js
|
|
2
|
+
'use strict';
|
|
3
|
+
const { defineConfig, devices } = require('@playwright/test');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
module.exports = defineConfig({
|
|
7
|
+
testDir: path.join(__dirname, 'tests', '_helpers'),
|
|
8
|
+
testMatch: ['agentic-runner.bundle.spec.js'],
|
|
9
|
+
reporter: [
|
|
10
|
+
[path.join(__dirname, 'tests', '_helpers', 'ArcalityReporter.js'),
|
|
11
|
+
{ outputDir: process.env.REPORTS_DIR || path.join(__dirname, 'tests-report') }]
|
|
12
|
+
],
|
|
13
|
+
use: {
|
|
14
|
+
video: 'on',
|
|
15
|
+
screenshot: 'on',
|
|
16
|
+
trace: 'on',
|
|
17
|
+
colorScheme: 'dark',
|
|
18
|
+
contextOptions: {
|
|
19
|
+
reducedMotion: 'reduce',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
projects: [
|
|
23
|
+
{
|
|
24
|
+
name: 'AgenticBrowser',
|
|
25
|
+
use: {
|
|
26
|
+
...devices['Desktop Chrome'],
|
|
27
|
+
channel: 'chrome',
|
|
28
|
+
viewport: { width: 1440, height: 900 },
|
|
29
|
+
userAgent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 ArcalityAgent/1.0',
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
],
|
|
30
33
|
});
|
package/scripts/gen-and-run.mjs
CHANGED
|
@@ -778,17 +778,16 @@ async function main() {
|
|
|
778
778
|
}
|
|
779
779
|
|
|
780
780
|
try {
|
|
781
|
-
//
|
|
782
|
-
//
|
|
781
|
+
// No test file path is passed — playwright.config.js uses testMatch:'agentic-runner.spec.ts'
|
|
782
|
+
// This eliminates the Windows regex path issue permanently on any user's machine.
|
|
783
783
|
await run('node', [
|
|
784
784
|
'--no-warnings',
|
|
785
785
|
playwrightCli,
|
|
786
786
|
'test',
|
|
787
|
-
'tests/_helpers/agentic-runner.spec.ts', // RELATIVE path prevents regex errors
|
|
788
787
|
'--headed',
|
|
789
788
|
'--config', 'playwright.config.js'
|
|
790
789
|
], {
|
|
791
|
-
cwd: PROJECT_ROOT,
|
|
790
|
+
cwd: PROJECT_ROOT, // Run from the arcality package root
|
|
792
791
|
env: mergedEnv,
|
|
793
792
|
onStatus: (msg) => { if (!process.argv.includes('--debug')) s.message(msg); else console.log(chalk.gray(`>> Status: ${msg}`)); }
|
|
794
793
|
});
|