- TestURLSchemeCheck: prose and scheme words in titles or queries pass; every
URL-bearing attribute, CSS, meta refresh and each entity-encoded or
whitespace-split script URL is refused with a snippet at the markup; a layout
override with javascript: falls back to the file version with inlining on
and off; the editor refuses it on content_html and CSS URLs on content_css
- TestInlineUnsafeOutput: a failing inlined result sends the style-block
version with one warning per layout
- TestFooterSiteNameLiteral: the footer prints the site name escaped and
literally on the default and system layouts; body stays Markdown
- check-phase35.sh GO_TESTS requires the three tests
- TestSiteNameSend: mail.from "Metadata: Weekly" and Branding "Big Data: Summit"
show in header, footer and text on the default and system layouts, on the
file-version, override and override-failure fallback paths
- TestUnsafeSiteNameDropped: unsafe names are left out on every path with one
value-free warning per source; editor saves and previews are not refused
- TestUnsafeText pins the safe and unsafe texts
- check-phase35.sh GO_TESTS requires them and TestMailSafetySmoke
- LocaleVariantSwitcher: current flag, option values and locales, the label
through the control id, the query kept on navigation, no navigation for the
open version, selection restored when a guard throws, props updates
- FormView: no switcher with one variant; with unsaved edits switching asks
the unsaved-changes confirm, stays on cancel and opens the sibling on confirm
- check-phase35.sh requires LocaleVariantSwitcher.test.ts (ADMIN_FILES)
- TestMailLocaleGroups: one list row per template, customized locales,
grouped badges and status filter, localeVariants order, labels, states and
current flag, the default version on a fallback row, save then send, reset,
drift through the base file, the file version against the base file,
out-of-group ids, the permission split and locales enabled at run time
- TestMailBrandSiteName: saved trimmed, 255-character limit, preview and send
header, no header row without a name or a logo, current handling of a name
holding a URL scheme
- TestMailLayoutInlineOptOut: the switch on a file layout, reset to the file
value, a custom layout created with the switch off
- check-phase35.sh requires the three names (DOCKER_TESTS)
- TestTemplateBase, TestTemplateFor and TestSendLocaleFallback pin the
<template>-<locale> resolution and the order the override source is asked
- TestEnsureLocaleRows (Postgres): rows only for non-default locales without
files, idempotent, customized content kept while file_hash follows the
base, base_code from SyncIndex, reset of a fallback row, migrations roll back
- TestBuiltinLayoutsLogo, TestHeaderFooterPartials, TestButtonPartial and
TestSiteName cover the finished default, system and minimal layouts
- TestInlineCSS, TestInlineCSSOptOut and TestInlineFailure cover inlining,
the per-layout opt-out and the fallback when the inliner fails
- check-phase35.sh requires the new names (GO_TESTS, DOCKER_TESTS)
- consumers stage runs each core plugin with GOWORK=off, GOPROXY=off and
-mod=mod -modfile=<scratch>/go.mod (its go.sum merged with the framework's),
so the go-premailer requirement resolves without writing the sibling tree
- workspace_check takes the modfile flags; a sibling whose git status
--porcelain prints anything before or after the runs is refused
- self-test: planted dirty repository and a modfile resolving the framework
elsewhere
- Fail-closed stages for self-test, go, docker, consumers, admin, docs, marker and additive
- Consumers run sm-user-plugin and sm-paymentgateway-plugin mail tests against this checkout
Co-authored-by: Cursor <cursoragent@cursor.com>