修复自定义邮箱收码模式默认手动

This commit is contained in:
QLHazyCoder
2026-05-28 06:14:04 +08:00
parent 1960b6e21a
commit 2992cc88ac
18 changed files with 1154 additions and 6 deletions
+17
View File
@@ -60,6 +60,10 @@ test('sidepanel html exposes custom email pool generator option and input row',
assert.match(html, /id="input-custom-email-pool-import"/);
assert.match(html, /id="custom-email-pool-list"/);
assert.match(html, /id="btn-custom-email-pool-bulk-used"/);
assert.match(html, /id="row-custom-mail-receive-mode"/);
assert.match(html, /id="select-custom-mail-receive-mode"/);
assert.match(html, /id="row-custom-mail-helper-base-url"/);
assert.match(html, /id="input-custom-mail-helper-base-url"/);
assert.match(html, /id="row-custom-mail-provider-pool"/);
assert.match(html, /id="input-custom-mail-provider-pool"/);
});
@@ -187,6 +191,19 @@ test('sidepanel queues custom email pool refresh when the pool row is visible',
);
});
test('sidepanel only shows custom mail helper url when helper receive mode is selected', () => {
const source = extractFunction('updateMailProviderUI');
assert.match(
source,
/rowCustomMailReceiveMode\.style\.display = useCustomEmail \? '' : 'none'/
);
assert.match(
source,
/rowCustomMailHelperBaseUrl\.style\.display = useCustomEmail && getSelectedCustomMailReceiveMode\(\) === CUSTOM_MAIL_RECEIVE_MODE_HELPER \? '' : 'none'/
);
});
test('sidepanel custom verification dialog exposes add-phone action for step 8', async () => {
const bundle = [
extractFunction('getCustomVerificationPromptCopy'),