Skip to content

test(frontend): add RegistrationRequestModalComponent unit tests#5596

Closed
Roshan3580 wants to merge 1 commit into
apache:mainfrom
Roshan3580:test/registration-request-modal-5467
Closed

test(frontend): add RegistrationRequestModalComponent unit tests#5596
Roshan3580 wants to merge 1 commit into
apache:mainfrom
Roshan3580:test/registration-request-modal-5467

Conversation

@Roshan3580

Copy link
Copy Markdown

Summary

Adds unit tests for RegistrationRequestModalComponent.

Closes #5467

Changes

  • Added registration-request-modal.component.spec.ts
  • Added a test to verify the component is created successfully
  • Added a test to verify modal data correctly seeds name and email
  • Added a test to verify null modal data falls back to empty strings
  • Added a test to verify getValues() trims whitespace from affiliation and reason

Testing

Executed:

yarn test --include='**/registration-request-modal.component.spec.ts'
yarn lint

Both completed successfully.

@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Jun 9, 2026
@Yicong-Huang

Copy link
Copy Markdown
Contributor

@Roshan3580 please use our PR template. Please feel free to reopen once it is ready. Thanks!

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.

Add unit tests for RegistrationRequestModalComponent

2 participants