Skip to content

Commit 4367bf3

Browse files
committed
test(ExperimentalSettings): increasing coverage
1 parent eb2089a commit 4367bf3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎src/shared/experiments.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type ExperimentKey = Keys<typeof EXPERIMENT_IDS>
1414

1515
interface ExperimentConfig {
1616
enabled: boolean
17+
/** Defaults to true; set to false to hide from the Settings panel. */
1718
showInSettings?: boolean
1819
}
1920

@@ -22,6 +23,7 @@ export const experimentConfigsMap: Record<ExperimentKey, ExperimentConfig> = {
2223
IMAGE_GENERATION: { enabled: false },
2324
RUN_SLASH_COMMAND: { enabled: false },
2425
CUSTOM_TOOLS: { enabled: false },
26+
// TODO: add i18n keys (settings:experimental.PARALLEL_TOOL_EXECUTION.name/.description) in the same PR that sets showInSettings: true
2527
PARALLEL_TOOL_EXECUTION: { enabled: false, showInSettings: false },
2628
}
2729

‎webview-ui/src/components/settings/__tests__/ExperimentalSettings.spec.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ describe("ExperimentalSettings", () => {
2828

2929
expect(screen.getByText("settings:experimental.PREVENT_FOCUS_DISRUPTION.name")).toBeInTheDocument()
3030
expect(screen.getByText("settings:experimental.RUN_SLASH_COMMAND.name")).toBeInTheDocument()
31+
expect(screen.getByText("settings:experimental.IMAGE_GENERATION.name")).toBeInTheDocument()
32+
expect(screen.getByText("settings:experimental.CUSTOM_TOOLS.name")).toBeInTheDocument()
3133
expect(screen.queryByText("settings:experimental.PARALLEL_TOOL_EXECUTION.name")).not.toBeInTheDocument()
3234
})
3335
})

0 commit comments

Comments
 (0)