@arcadialdev/arcality 2.4.20 → 2.4.21
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 +1 -1
- package/playwright.config.js +32 -29
- package/scripts/gen-and-run.mjs +3 -4
package/package.json
CHANGED
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
|
-
module.exports = defineConfig({
|
|
6
|
-
testDir:
|
|
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
|
+
|
|
5
|
+
module.exports = defineConfig({
|
|
6
|
+
// testDir + testMatch together: Playwright finds the runner without any CLI path argument.
|
|
7
|
+
// This avoids Windows backslash-as-regex issues AND the "No tests found" error on external projects.
|
|
8
|
+
testDir: './tests/_helpers',
|
|
9
|
+
testMatch: 'agentic-runner.spec.ts',
|
|
10
|
+
reporter: [
|
|
11
|
+
['./tests/_helpers/ArcalityReporter.js', { outputDir: process.env.REPORTS_DIR || '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
|
});
|