@arcadialdev/arcality 2.2.4 → 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 +1 -1
- package/scripts/gen-and-run.mjs +7 -2
package/package.json
CHANGED
package/scripts/gen-and-run.mjs
CHANGED
|
@@ -711,8 +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 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');
|
|
717
|
+
const configFile = path.join(PROJECT_ROOT, 'playwright.config.ts');
|
|
718
|
+
|
|
714
719
|
try {
|
|
715
|
-
await run("
|
|
720
|
+
await run("node", [playwrightCli, "test", path.join(PROJECT_ROOT, "tests/_helpers/agentic-runner.spec.ts"), "--headed", `--config=${configFile}`], {
|
|
716
721
|
env: mergedEnv,
|
|
717
722
|
onStatus: (msg) => s.message(msg)
|
|
718
723
|
});
|
|
@@ -780,7 +785,7 @@ async function main() {
|
|
|
780
785
|
} finally {
|
|
781
786
|
const sRep = spinner();
|
|
782
787
|
sRep.start('📊 Generating report...');
|
|
783
|
-
await run("node", ["scripts/rebrand-report.mjs"]).catch(() => { });
|
|
788
|
+
await run("node", [path.join(PROJECT_ROOT, "scripts/rebrand-report.mjs")]).catch(() => { });
|
|
784
789
|
|
|
785
790
|
const reportDir = process.env.REPORTS_DIR || 'tests-report';
|
|
786
791
|
const arcalityPath = path.resolve(reportDir, 'index.html');
|