Skip to content

Commit fc0147b

Browse files
authored
test(plugins): remove duplicate setup cases (#122515)
1 parent 83bca68 commit fc0147b

2 files changed

Lines changed: 0 additions & 38 deletions

File tree

‎extensions/codex/harness.test.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,6 @@ describe("Codex agent harness supports()", () => {
179179
});
180180
});
181181

182-
it("supports the canonical openai routing id (documented Codex path)", () => {
183-
expect(harness.supports({ provider: "openai", requestedRuntime: "codex" })).toEqual({
184-
supported: true,
185-
priority: 100,
186-
});
187-
});
188-
189182
it("supports an official route declared compatible with Codex", () => {
190183
expect(
191184
harness.supports({

‎extensions/whatsapp/src/setup-surface.test.ts‎

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,16 @@ import { DEFAULT_ACCOUNT_ID, type OpenClawConfig } from "openclaw/plugin-sdk/set
99
import { beforeEach, describe, expect, it, vi } from "vitest";
1010
import { whatsappSetupWizard } from "./setup-surface.js";
1111
import {
12-
createWhatsAppAllowlistModeInput,
1312
createWhatsAppLinkingHarness,
1413
createWhatsAppOwnerAllowlistHarness,
1514
createWhatsAppPersonalPhoneHarness,
1615
createWhatsAppRootAllowFromConfig,
1716
createWhatsAppWorkAccountConfig,
1817
expectNoWhatsAppLoginFollowup,
19-
expectWhatsAppAllowlistModeSetup,
2018
expectWhatsAppLoginFollowup,
2119
expectWhatsAppOpenPolicySetup,
2220
expectWhatsAppOwnerAllowlistSetup,
2321
expectWhatsAppPersonalPhoneSetup,
24-
expectWhatsAppSeparatePhoneDisabledSetup,
2522
expectWhatsAppWorkAccountAccessNote,
2623
expectWhatsAppWorkAccountOpenAccess,
2724
} from "./setup-test-helpers.js";
@@ -138,20 +135,6 @@ function expectFinalizeResult(result: Awaited<ReturnType<typeof runFinalizeWithH
138135
return result as { cfg: OpenClawConfig };
139136
}
140137

141-
async function runSeparatePhoneFlow(params: { selectValues: string[]; textValues?: string[] }) {
142-
hoisted.pathExists.mockResolvedValue(true);
143-
const harness = createSeparatePhoneHarness({
144-
selectValues: params.selectValues,
145-
textValues: params.textValues,
146-
});
147-
const result = expectFinalizeResult(
148-
await runFinalizeWithHarness({
149-
harness,
150-
}),
151-
);
152-
return { harness, result };
153-
}
154-
155138
describe("whatsapp setup wizard", () => {
156139
beforeEach(() => {
157140
hoisted.detectWhatsAppLinked.mockReset();
@@ -186,14 +169,6 @@ describe("whatsapp setup wizard", () => {
186169
expectWhatsAppOwnerAllowlistSetup(result.cfg, harness);
187170
});
188171

189-
it("supports disabled DM policy for separate-phone setup", async () => {
190-
const { harness, result } = await runSeparatePhoneFlow({
191-
selectValues: ["separate", "disabled"],
192-
});
193-
194-
expectWhatsAppSeparatePhoneDisabledSetup(result.cfg, harness);
195-
});
196-
197172
it("writes named-account DM policy and allowFrom instead of the channel root", async () => {
198173
hoisted.pathExists.mockResolvedValue(true);
199174
const harness = createSeparatePhoneHarness({
@@ -310,12 +285,6 @@ describe("whatsapp setup wizard", () => {
310285
expectWhatsAppWorkAccountAccessNote(harness);
311286
});
312287

313-
it("normalizes allowFrom entries when list mode is selected", async () => {
314-
const { result } = await runSeparatePhoneFlow(createWhatsAppAllowlistModeInput());
315-
316-
expectWhatsAppAllowlistModeSetup(result.cfg);
317-
});
318-
319288
it("enables allowlist self-chat mode for personal-phone setup", async () => {
320289
hoisted.pathExists.mockResolvedValue(true);
321290
const harness = createWhatsAppPersonalPhoneHarness(createQueuedWizardPrompter);

0 commit comments

Comments
 (0)