fix: use owner-level unidesk state
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { existsSync, mkdirSync, rmSync } from "node:fs";
|
||||
import { dirname, join, resolve } from "node:path";
|
||||
import { chromium, firefox, webkit, type Browser, type BrowserContext, type BrowserType, type Page } from "playwright";
|
||||
import { repoRoot } from "./config";
|
||||
import { repoRoot, rootPath } from "./config";
|
||||
import { emitError, emitJson } from "./output";
|
||||
|
||||
type BrowserName = "chromium" | "firefox" | "webkit";
|
||||
@@ -22,7 +22,7 @@ interface ParsedOptions {
|
||||
fullPage: boolean;
|
||||
}
|
||||
|
||||
const stateRoot = join(repoRoot, ".state", "playwright-cli");
|
||||
const stateRoot = rootPath(".state", "playwright-cli");
|
||||
const defaultScreenshotPath = join(stateRoot, "screenshots", "latest.png");
|
||||
const supportedCommands = ["open", "screenshot", "eval", "session-list", "session-delete"];
|
||||
const unsupportedInteractiveCommands = new Set([
|
||||
|
||||
Reference in New Issue
Block a user