Roo-Code/apps/vscode-e2e/src/suite/extension.test.ts
Hannes Rudolph c37aa02b21
chore: remove human-relay provider (#10388)
Co-authored-by: Roo Code <roomote@roocode.com>
2025-12-30 15:38:46 -07:00

41 lines
1.1 KiB
TypeScript

import * as assert from "assert"
import * as vscode from "vscode"
import { setDefaultSuiteTimeout } from "./test-utils"
suite("Roo Code Extension", function () {
setDefaultSuiteTimeout(this)
test("Commands should be registered", async () => {
const expectedCommands = [
"SidebarProvider.open",
"SidebarProvider.focus",
"SidebarProvider.resetViewLocation",
"SidebarProvider.toggleVisibility",
"SidebarProvider.removeView",
"activationCompleted",
"plusButtonClicked",
"popoutButtonClicked",
"openInNewTab",
"settingsButtonClicked",
"historyButtonClicked",
"newTask",
"setCustomStoragePath",
"focusInput",
"acceptInput",
"explainCode",
"fixCode",
"improveCode",
"addToContext",
"terminalAddToContext",
"terminalFixCommand",
"terminalExplainCommand",
]
const commands = new Set((await vscode.commands.getCommands(true)).filter((cmd) => cmd.startsWith("roo-cline")))
for (const command of expectedCommands) {
assert.ok(commands.has(`roo-cline.${command}`), `Command ${command} should be registered`)
}
})
})