Explain disabled mail connection tests
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user