mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-30 08:27:39 +01:00
test(runner): verify installed launch and published Daytona plugin
Invoke the public Playwright JavaScript entry directly for installed Pi tests so pnpm shim NODE_PATH injection cannot cross the closed controller boundary. Add a credential-free health/UI startup proof and a pinned published Daytona plugin fixture path without production runtime overrides. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
4c58da84fd
commit
30edeec300
12 files changed
+306
-10
No files matched your search
@@ -21,3 +21,12 @@ export function runnerE2EWebServerCommand(repositoryRoot: string) {
|
||||
export function runnerE2ETypeScriptProcessArgs(repositoryRoot: string, entry: string, args: string[] = []) {
|
||||
return ["--import", path.join(repositoryRoot, "cli/node_modules/tsx/dist/loader.mjs"), entry, ...args];
|
||||
}
|
||||
|
||||
// pnpm's generated playwright bin shim adds NODE_PATH, even when the caller
|
||||
// rejected ambient injection. The installed lane invokes the public JS bin
|
||||
// with the current Node directly, keeping the WebServer environment closed.
|
||||
export function runnerE2EPlaywrightInvocation(repositoryRoot: string, args: string[], installed: boolean) {
|
||||
return installed
|
||||
? { command: process.execPath, args: [path.join(repositoryRoot, "node_modules/@playwright/test/cli.js"), ...args] }
|
||||
: { command: "pnpm", args: ["exec", "playwright", ...args] };
|
||||
}
|
||||
Reference in new issue
Block a user