Mail relay: state block without an import-map entry, e2e on the reference site, sharper failure reports
- the state block is rendered by IntegrationStatusBanner (no new admin component: generate:importmap gives no diff) - reference site: e2e/mail-relay.spec.ts with a fixture and setup script; e2e:built runs it with both bundlers - a failed enrolment is reported as what it was; the service's own refusal after a fresh enrolment - a message keeps its key after any failure that is not final - a local site is shown as refused in the panel before any e-mail Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
dd3792cbc7
commit
2cceceffd0
@@ -290,8 +290,10 @@ describe('switched off, and what did not change', () => {
|
||||
const on = await makeConfig(undefined, 'relayon')
|
||||
expect(endpoints(on)).toEqual(expect.arrayContaining(['post /iapl/mail-relay/confirm', 'get /iapl/mail-relay/status', 'post /iapl/mail-relay/connect', 'post /iapl/mail-relay/disconnect']))
|
||||
expect(endpoints(off).filter((e) => e.includes('mail-relay'))).toEqual([])
|
||||
expect(emailTab(on)).toContain('MailRelayStatus')
|
||||
expect(emailTab(off)).not.toContain('MailRelayStatus')
|
||||
expect(emailTab(on)).toContain('"mailRelay":true')
|
||||
expect(emailTab(off)).not.toContain('mailRelay')
|
||||
// no admin component of its own: a site's committed import map stays as it is
|
||||
expect(emailTab(on)).not.toContain('#MailRelayStatus')
|
||||
expect(emailTab(off)).not.toContain('Intecion')
|
||||
expect((off.custom as { iapl: { mail: { relay: unknown } } }).iapl.mail.relay).toBe(false)
|
||||
const hooks = (config: SanitizedConfig) => config.collections?.find((c) => c.slug === 'users')?.hooks?.beforeOperation?.length ?? 0
|
||||
|
||||
Reference in New Issue
Block a user