Explain disabled mail connection tests

This commit is contained in:
2026-08-03 10:05:59 +02:00
parent bb84122061
commit 2d0551a845
3 changed files with 25 additions and 3 deletions
+14
View File
@@ -108,6 +108,20 @@ assert(!settingsPanel.includes("i18n:govoplan-core.advanced.4d064726"), "advance
assert(!settingsPanel.includes("Enable IMAP"), "legacy IMAP enable toggle is not rendered");
assert(settingsPanel.includes('placeholder="Saved SMTP password"'), "SMTP saved credential placeholder is rendered");
const disabledSettingsPanel = renderToStaticMarkup(
<MailServerSettingsPanel
smtp={{ host: "", port: 587, security: "starttls", timeout_seconds: 30 }}
imap={{ host: "", port: 993, security: "tls", sent_folder: "auto", timeout_seconds: 30 }}
onSmtpChange={noop}
onImapChange={noop}
onTestSmtp={noop}
smtpActionDisabled
smtpActionDisabledReason="Enter an SMTP server hostname before testing the connection."
/>
);
assert(disabledSettingsPanel.includes("disabled-action-tooltip"), "disabled SMTP test reason uses the shared focusable tooltip");
assert(disabledSettingsPanel.includes('tabindex="0"'), "disabled SMTP test reason is keyboard focusable");
const imapSettingsPanel = renderToStaticMarkup(
<MailServerSettingsPanel
initialSection="imap"