Invalid DonUI Inputs: Operator Handoff
These are LTI checks, not changes to DonUI validation or campaign rendering. They build on PR66's localized empty-field foundation. No schedules are created.
Select a Check
Use an acceptance DonationLink with a supported clean /<list> or /<list>/md
URL. The target resolver maps recognized live-shaped links to configured
acceptance origins; execution against production is rejected before Chrome.
Never add donor references, express flags, amount overrides or campaign IDs to
the source link. The acceptance allowlist/blocklist and usual artifacts apply.
| Test type | Additional arguments | Assertions |
|---|---|---|
testInvalidFieldFormats |
empty | Five nonempty malformed emails, correct localized field/page errors, no progression |
testCampaignConfiguration |
missing |
Generic form, no campaign lookup |
testCampaignConfiguration |
empty |
Empty nid/fundraising_id, generic form, no lookup |
testCampaignConfiguration |
invalid_nid |
nid=0 lookup, absent/rejected campaign, usable form AND explicit warning |
testCampaignConfiguration |
invalid_fundraising |
fundraising_id=0 lookup, same warning contract |
For invalid cases, DONUI_CONTENT_API_BASE_URL must be the guarded acceptance API base
used by DonUI's VITE_CGO_API_URL, including any path prefix. Do not change an
environment's shared backend base just to make a test pass: verify both deployed
configurations with the release owner. LTI requires matching GET endpoints,
id=0, completed browser request evidence, and HTTP 200 with exactly [] or
400/404/422. Auth errors, 5xx, redirects and missing evidence are failures.
Performance logging is enabled even without scheduler metadata. Missing/empty
cases are observed for at least one second after the amount form becomes usable;
logs are polled throughout. This catches delayed effects,
not arbitrarily late background activity. The observation duration is recorded.
Leave the dedicated setting empty to retain the legacy BACKEND_BASE_URL
fallback. A nonempty override never falls back after validation failure.
Configure the exact DonUI-compiled API origin and path (including /api/v1
where applicable) on both acceptance service and runner, and add only its
verified hostname to the existing exact allowlist. Do not change the backend
health base or weaken request matching to normalize distinct service aliases.
The selected code branch's workflow changes do not run when dispatching the
stable main workflow before merge: reconcile these two settings explicitly
after such a deployment and verify both saved states. Older workflow defaults
can reset the allowlist; recheck after every deployment until PR67 merges.
A fresh browser isolates persisted campaign/session state. Raw bodies are not written to journey evidence; existing browser artifacts remain redacted and access-controlled.
T035 fills fixed synthetic names/address/phone where visible. It submits only invalid emails and never reaches payment intentionally. Names, phone and postcode have no custom format rules in the reviewed DonUI source; these are not claimed as format coverage. T002 does not click amount, information or payment buttons.
Campaign Warning Contract and Release Evidence
The campaigners' source sheet asks for a warning on an invalid petition ID.
The original DonUI baseline 08996455 silently rendered generic content.
DonUI PR371 supplies the localized warning. On 10 November its deployed sandbox
head 465fec8 passed 32/32 guarded hosted T002 checks, using LTI 8c53373 and
the exact saved content API configuration. This is bounded sandbox evidence,
not a scheduled execution or payment/CRM acceptance.
The warning contract is a nonempty, visible, localized element with
data-testid="campaign-configuration-warning" and role="alert". This specific
selector prevents a generic page error from satisfying the campaign requirement.
Partial evidence distinguishes usable form/lookup status from missing warning.
Do not suppress that failure or enable recurring alerting before resolving it.
The source sheet is linked in feature 031; release evidence belongs in PR67 and
Asana 1220296087901998. T035 hosted validation is a separate gate.
Review and Release Order
- PR66 and corrective PR68 are merged; PR67 targets main and preserves the shared bounded control-readiness wait. Refresh and run final-head CI. Cristian explicitly waived the pending human-review wait for the 11 November release; this is not a standing exception or permission to ignore failed checks.
- If PR63/65 are landing in the same release, keep 63 before 65. Reconcile their
migration leaves with PR66 and this PR's
0024_invalid_input_scenarios, and preserve the union of test choices. Run application migration drift checks. - Main CI can automatically deploy production. Coordinate that release window before merging; green CI alone is not permission for an unplanned rollout.
- Deploy an authorized acceptance build and apply migrations. Execute only the named new checks with clean synthetic targets. No legacy queue replay or general cron activation. Validate representative locales plus OTD and MD.
- Record T035 validation, missing/empty campaign behavior and invalid campaign warning results separately. T002's bounded sandbox gate is complete; record T035 results and actual deployment separately. Recurring scheduling still requires separate authorization.
Offline Verification
Use DJANGO_SETTINGS_MODULE=main.settings_ci and the explicit module list in
.github/workflows/ci.yml. Set LTI_LOCAL_BROWSER_TESTS=1 for real Chrome against
committed loopback fixtures. These prove LTI's checker, not live DonUI behavior.
Do not run an unscoped manage.py test, live behave suite or cron: legacy tests
can perform payments and signatures. behave --dry-run checks discovery only.
This LTI PR does not edit DonUI/FRAPI code, credentials or deployment triggers. It explicitly aligns acceptance content API configuration. CI runs on all PR bases so stacked feature branches are checked.