Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): the Tailscale HTTPS row says detection is off instead of telling users to start Tailscale #18758

MergedMnigos(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/18758/headmerged by juliusmarminge View on GitHub

Showing 3 changed files with 35 additions and 1 deletion.

x
0 of 3 viewed, 3 left
18 additions and 0 deletionsapps/web/src/components/settings/ConnectionsSettings.logic.test.tsModified
View file
@@ -5,6 +5,7 @@
canRevokeOtherClients,
isQrShareableEndpoint,
isWslSettingsRowVisible,
+ missingTailscaleEndpointDescription,
selectQrEndpointOption,
togglePairingScopeSelection,
} from "./ConnectionsSettings.logic";
@@ -232,3 +233,20 @@
expect(canRevokeOtherClients([{ current: true }, { current: false }])).toBe(true);
});
});
+​
+describe("missingTailscaleEndpointDescription", () => {
+ it("explains that detection waits for Network access when the probe was skipped", () => {
+ expect(
+ missingTailscaleEndpointDescription({ mode: "local-only", tailscaleServeEnabled: false }),
+ ).toBe("Turn on Network access to detect Tailscale.");
+ });
+​
+ it.each([
+ { mode: "network-accessible", tailscaleServeEnabled: false },
+ { mode: "local-only", tailscaleServeEnabled: true },
+ ] as const)("asks to start Tailscale when it was probed and not found (%o)", (state) => {
+ expect(missingTailscaleEndpointDescription(state)).toBe(
+ "Start Tailscale to set up HTTPS access through MagicDNS.",
+ );
+ });
+});