Skip to content

test(frontend): add spec for RegistrationRequestModalComponent#5583

Open
EmilySun621 wants to merge 1 commit into
apache:mainfrom
EmilySun621:test/registration-request-modal
Open

test(frontend): add spec for RegistrationRequestModalComponent#5583
EmilySun621 wants to merge 1 commit into
apache:mainfrom
EmilySun621:test/registration-request-modal

Conversation

@EmilySun621

Copy link
Copy Markdown

Covers constructor hydration from NZ_MODAL_DATA (name/email, missing-field fallback), getValues() trimming and null/undefined coercion, and the modalTitle TemplateRef capture.

What changes were proposed in this PR?

Adds a behavior-focused unit test spec for RegistrationRequestModalComponent. Tests cover:

  • Constructor hydration from NZ_MODAL_DATA (name, email, missing-field fallback)
  • getValues() trimming and null/undefined coercion
  • modalTitle TemplateRef capture

Any related issues, documentation, discussions?

Related to #5167

How was this PR tested?

Spec verified with npx ng test --watch=false --include='**/registration-request-modal.component.spec.ts'. 7 tests passing.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus4.7 1M context)

Covers constructor hydration from NZ_MODAL_DATA (name/email, missing-field fallback),
getValues() trimming and null/undefined coercion, and the modalTitle TemplateRef
capture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant