@arcadialdev/arcality 2.3.3 → 2.3.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/package.json +2 -2
- package/playwright.config.js +30 -0
- package/scripts/gen-and-run.mjs +1 -1
- package/playwright.config.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcadialdev/arcality",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"tests/_helpers/",
|
|
20
20
|
".agents/",
|
|
21
21
|
"public/",
|
|
22
|
-
"playwright.config.
|
|
22
|
+
"playwright.config.js",
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"publishConfig": {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// playwright.config.js
|
|
2
|
+
'use strict';
|
|
3
|
+
const { defineConfig, devices } = require('@playwright/test');
|
|
4
|
+
|
|
5
|
+
module.exports = defineConfig({
|
|
6
|
+
testDir: './tests',
|
|
7
|
+
reporter: [
|
|
8
|
+
['./tests/_helpers/ArcalityReporter.js', { outputDir: process.env.REPORTS_DIR || 'tests-report' }]
|
|
9
|
+
],
|
|
10
|
+
use: {
|
|
11
|
+
video: 'on',
|
|
12
|
+
screenshot: 'on',
|
|
13
|
+
trace: 'on',
|
|
14
|
+
colorScheme: 'dark',
|
|
15
|
+
contextOptions: {
|
|
16
|
+
reducedMotion: 'reduce',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
projects: [
|
|
20
|
+
{
|
|
21
|
+
name: 'AgenticBrowser',
|
|
22
|
+
use: {
|
|
23
|
+
...devices['Desktop Chrome'],
|
|
24
|
+
channel: 'chrome',
|
|
25
|
+
viewport: { width: 1440, height: 900 },
|
|
26
|
+
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',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
});
|
package/scripts/gen-and-run.mjs
CHANGED
|
@@ -729,7 +729,7 @@ async function main() {
|
|
|
729
729
|
playwrightCli = path.join(PROJECT_ROOT, 'node_modules', 'playwright', 'cli.js');
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
const configFile = path.join(PROJECT_ROOT, 'playwright.config.
|
|
732
|
+
const configFile = path.join(PROJECT_ROOT, 'playwright.config.js');
|
|
733
733
|
try {
|
|
734
734
|
// IMPORTANT: Playwright's internal `.ts` transpiler intentionally ignores everything inside `node_modules`.
|
|
735
735
|
// Because Arcality tests run from inside `node_modules/@arcadialdev/arcality`, Playwright refuses to compile them.
|
package/playwright.config.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from '@playwright/test';
|
|
2
|
-
|
|
3
|
-
export default defineConfig({
|
|
4
|
-
testDir: './tests',
|
|
5
|
-
reporter: [
|
|
6
|
-
['./tests/_helpers/ArcalityReporter.js', { outputDir: process.env.REPORTS_DIR || 'tests-report' }]
|
|
7
|
-
],
|
|
8
|
-
use: {
|
|
9
|
-
video: 'on',
|
|
10
|
-
trace: 'retain-on-failure',
|
|
11
|
-
},
|
|
12
|
-
});
|