@arcadialdev/arcality 2.2.5 → 2.2.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcadialdev/arcality",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "AI-powered QA testing tool — Autonomous web testing agent by Arcadial",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -711,15 +711,13 @@ async function main() {
711
711
  console.log(chalk.gray(`\n>> ARCALITY_PROJECT_ID: ${finalProjectId}`));
712
712
  }
713
713
 
714
- // Always use Arcality's own Playwright to avoid version conflicts with user's project
715
- const playwrightBin = process.platform === 'win32'
716
- ? path.join(PROJECT_ROOT, 'node_modules', '.bin', 'playwright.cmd')
717
- : path.join(PROJECT_ROOT, 'node_modules', '.bin', 'playwright');
718
-
714
+ // Always use Arcality's own Playwright CLI to avoid version conflicts
715
+ // We invoke via `node cli.js` to avoid Windows shell path-with-spaces issues
716
+ const playwrightCli = path.join(PROJECT_ROOT, 'node_modules', 'playwright', 'cli.js');
719
717
  const configFile = path.join(PROJECT_ROOT, 'playwright.config.ts');
720
718
 
721
719
  try {
722
- await run(playwrightBin, ["test", "tests/_helpers/agentic-runner.spec.ts", "--headed", `--config=${configFile}`], {
720
+ await run("node", [playwrightCli, "test", path.join(PROJECT_ROOT, "tests/_helpers/agentic-runner.spec.ts"), "--headed", `--config=${configFile}`], {
723
721
  env: mergedEnv,
724
722
  onStatus: (msg) => s.message(msg)
725
723
  });
@@ -787,7 +785,7 @@ async function main() {
787
785
  } finally {
788
786
  const sRep = spinner();
789
787
  sRep.start('📊 Generating report...');
790
- await run("node", ["scripts/rebrand-report.mjs"]).catch(() => { });
788
+ await run("node", [path.join(PROJECT_ROOT, "scripts/rebrand-report.mjs")]).catch(() => { });
791
789
 
792
790
  const reportDir = process.env.REPORTS_DIR || 'tests-report';
793
791
  const arcalityPath = path.resolve(reportDir, 'index.html');