diff --git a/src/components/PageComponents/Connect/HTTP.test.tsx b/src/components/PageComponents/Connect/HTTP.test.tsx
index d81fde39..92550988 100644
--- a/src/components/PageComponents/Connect/HTTP.test.tsx
+++ b/src/components/PageComponents/Connect/HTTP.test.tsx
@@ -58,6 +58,18 @@ describe("HTTP Component", () => {
expect(screen.getByText("http://")).toBeInTheDocument();
});
+ it("enables HTTPS toggle when location protocol is https", () => {
+ Object.defineProperty(globalThis, "location", {
+ value: { protocol: "https:" },
+ writable: true,
+ });
+
+ render();
+
+ const switchInput = screen.getByRole("switch");
+ expect(switchInput).toBeChecked();
+ });
+
it.skip("submits form and triggers connection process", () => {
// This will need further work to test, as it involves a lot of other plumbing mocking
const closeDialog = vi.fn();
diff --git a/src/components/PageComponents/Connect/HTTP.tsx b/src/components/PageComponents/Connect/HTTP.tsx
index 3587c4bd..10a97890 100644
--- a/src/components/PageComponents/Connect/HTTP.tsx
+++ b/src/components/PageComponents/Connect/HTTP.tsx
@@ -70,7 +70,7 @@ export const HTTP = ({ closeDialog }: TabElementProps) => {