mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
test(tui): gate built CLI PTY cases (#120221)
This commit is contained in:
committed by
GitHub
parent
60fc2fe64d
commit
01cc71060d
@@ -63,6 +63,9 @@ type GatewayScenario = MockModelBehavior & {
|
||||
};
|
||||
|
||||
const SHARED_GATEWAY_AGENT_ID = "tui-pty-gateway";
|
||||
// These cases spawn openclaw.mjs outside the source TUI runner. CI opts in only
|
||||
// after the exact head has a complete build, so source-mode PTY smoke must skip them.
|
||||
const itWithBuiltCli = process.env.OPENCLAW_TUI_PTY_USE_BUILT_CLI === "1" ? it : it.skip;
|
||||
|
||||
const GATEWAY_SCENARIOS = {
|
||||
validation: {
|
||||
@@ -1344,7 +1347,7 @@ describe("TUI PTY real backends", () => {
|
||||
LOCAL_TEST_TIMEOUT_MS,
|
||||
);
|
||||
|
||||
it(
|
||||
itWithBuiltCli(
|
||||
"repairs isolated config through the approved built CLI and resumes local chat",
|
||||
async ({ onTestFinished }) => {
|
||||
const fixture = await startLocalModeTui(onTestFinished, {
|
||||
@@ -1398,7 +1401,7 @@ describe("TUI PTY real backends", () => {
|
||||
LOCAL_TEST_TIMEOUT_MS,
|
||||
);
|
||||
|
||||
it(
|
||||
itWithBuiltCli(
|
||||
"authenticates a manifest-discovered provider and resumes the unchanged local model",
|
||||
async ({ onTestFinished }) => {
|
||||
const pluginId = "t05-local-auth-fixture";
|
||||
|
||||
Reference in New Issue
Block a user