Skip to content

Stop a form spec corrupting MonographForm - #7582

Merged
orangewolf merged 1 commit into
mainfrom
spec-isolation-resource-form
Aug 13, 2026
Merged

Stop a form spec corrupting MonographForm#7582
orangewolf merged 1 commit into
mainfrom
spec-isolation-resource-form

Conversation

@laritakr

@laritakr laritakr commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Examples that stub the M3 schema loader now build throwaway work classes, so the real app form classes keep their field definitions for the rest of the suite run.

ResourceForm.for runs check_if_flexible, which includes form fields built from whatever loader is active. Pointed at Monograph under a stubbed loader that knew only :title, that include stripped MonographForm's other fields permanently — a mock reset cannot undo an include — and unrelated later specs failed with form fields missing from the rendered page.

Examples that stub the M3 schema loader now build throwaway work
classes, so the real app form classes keep their field definitions for
the rest of the suite run.

ResourceForm.for runs check_if_flexible, which includes form fields
built from whatever loader is active. Pointed at Monograph under a
stubbed loader that knew only :title, that include stripped
MonographForm's other fields permanently — a mock reset cannot undo an
include — and unrelated later specs failed with form fields missing
from the rendered page.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@laritakr laritakr added the notes-tests Release Notes: Spec or CI changes label Aug 12, 2026
@orangewolf
orangewolf merged commit e66834c into main Aug 13, 2026
19 checks passed
@orangewolf
orangewolf deleted the spec-isolation-resource-form branch August 13, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes-tests Release Notes: Spec or CI changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants