diff --git a/apps/desktop/src/components/connection/ConnectionDialog.vue b/apps/desktop/src/components/connection/ConnectionDialog.vue index bdab408317..582797ef45 100644 --- a/apps/desktop/src/components/connection/ConnectionDialog.vue +++ b/apps/desktop/src/components/connection/ConnectionDialog.vue @@ -8154,14 +8154,9 @@ function openExternalUrl(url: string) {
- - - - - - {{ t("connection.globalConnectTimeoutHint") }} - - + + {{ t("connection.globalConnectTimeoutHint") }} +
- - - - - - {{ t("connection.globalQueryTimeoutHint") }} - - + + {{ t("connection.globalQueryTimeoutHint") }} +
diff --git a/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts b/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts index 0a6bd458c7..3b86f91b45 100644 --- a/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts +++ b/apps/desktop/src/lib/__tests__/connection/connectionDialogTimeouts.spec.ts @@ -25,8 +25,13 @@ describe("ConnectionDialog timeout controls", () => { expect(dialogSource).not.toContain("Number(config.connect_timeout_secs)"); }); - it("shows range help beside both global timeout labels", () => { - expect(dialogSource).toContain('t("connection.globalConnectTimeoutHint")'); - expect(dialogSource).toContain('t("connection.globalQueryTimeoutHint")'); + it("uses button-backed help tooltips beside both global timeout labels", () => { + const connectGlobalControl = dialogSource.slice(dialogSource.indexOf('id="connect-timeout-global"'), dialogSource.indexOf('id="connect-timeout-connection"')); + const queryGlobalControl = dialogSource.slice(dialogSource.indexOf('id="query-timeout-global"'), dialogSource.indexOf('id="query-timeout-connection"')); + + expect(connectGlobalControl).toContain(`