Fix casing of Cosmos DB Shell command bar button label (#2552)

* Fix casing of Cosmos DB Shell command bar button label

* Capitalize Shell in all terminal button labels for consistency
This commit is contained in:
Mike Krüger
2026-08-17 11:13:21 +02:00
committed by GitHub
parent 12ad23a061
commit 0b38a6be4d
2 changed files with 7 additions and 7 deletions
@@ -74,8 +74,8 @@ describe("CommandBarComponentButtonFactory tests", () => {
});
});
describe("Open Cassandra shell button", () => {
const openCassandraShellBtnLabel = "Open Cassandra shell";
describe("Open Cassandra Shell button", () => {
const openCassandraShellBtnLabel = "Open Cassandra Shell";
const selectedNodeState = useSelectedNode.getState();
beforeAll(() => {
@@ -135,14 +135,14 @@ describe("CommandBarComponentButtonFactory tests", () => {
});
describe("Open Postgres and vCore Mongo buttons", () => {
const openPostgresShellButtonLabel = "Open PSQL shell";
const openVCoreMongoShellButtonLabel = "Open MongoDB (DocumentDB) shell";
const openPostgresShellButtonLabel = "Open PSQL Shell";
const openVCoreMongoShellButtonLabel = "Open MongoDB (DocumentDB) Shell";
beforeAll(() => {
mockExplorer = {} as Explorer;
});
it("creates Postgres shell button", () => {
it("creates Postgres Shell button", () => {
const buttons = CommandBarComponentButtonFactory.createPostgreButtons(mockExplorer);
const openPostgresShellButton = buttons.find(
(button) => button.commandButtonLabel === openPostgresShellButtonLabel,
@@ -150,7 +150,7 @@ describe("CommandBarComponentButtonFactory tests", () => {
expect(openPostgresShellButton).toBeDefined();
});
it("creates vCore Mongo shell button", () => {
it("creates vCore Mongo Shell button", () => {
const buttons = CommandBarComponentButtonFactory.createVCoreMongoButtons(mockExplorer);
const openVCoreMongoShellButton = buttons.find(
(button) => button.commandButtonLabel === openVCoreMongoShellButtonLabel,
@@ -513,7 +513,7 @@ function createOpenTerminalButtonByKind(
return "";
}
};
const label = `Open ${terminalFriendlyName()} shell`;
const label = `Open ${terminalFriendlyName()} Shell`;
const tooltip =
"This feature is not yet available in your account's region. View supported regions here: https://aka.ms/cosmos-enable-notebooks.";
const isNativeAuthDisabled = terminalKind === ViewModels.TerminalKind.VCoreMongo && isVCoreMongoNativeAuthDisabled();