@arcadialdev/arcality 2.2.4 → 2.2.5
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 +8 -1
package/package.json
CHANGED
package/scripts/gen-and-run.mjs
CHANGED
|
@@ -711,8 +711,15 @@ 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
|
+
|
|
719
|
+
const configFile = path.join(PROJECT_ROOT, 'playwright.config.ts');
|
|
720
|
+
|
|
714
721
|
try {
|
|
715
|
-
await run(
|
|
722
|
+
await run(playwrightBin, ["test", "tests/_helpers/agentic-runner.spec.ts", "--headed", `--config=${configFile}`], {
|
|
716
723
|
env: mergedEnv,
|
|
717
724
|
onStatus: (msg) => s.message(msg)
|
|
718
725
|
});
|