Skip to content

Conversation

@shivaahir158
Copy link
Collaborator

Motivate of the pull request

  • To address an existing issue. If so, please provide a link to the issue:
  • Breaking new feature. If so, please describe details in the description part.

Describe the technical details -

Tests for ModalWindow.js that checks

  1. Rendering the modal with the correct title.
  2. Verifying that all input fields are rendered with the correct default values.
  3. Triggering the closeModal function when the close button is clicked.
  4. Triggering the onSubmit function with the correct data when the form is submitted.
  5. Making sure that input fields (name, age, percentage, and clock) update correctly when their values are changed.

Which part of the code base require a change

  • Frontend: ModalWindow.test.js
  • Backend:
  • Library: <Specify the library name, e.g. npm packages>
  • Plug-in: <Specify the plugin name, e.g. Webpack, jtest>
  • Documentation
  • Regression tests
  • Continuous Integration (CI) scripts

Impact of the pull request

  • Require a change on Quality of Results (QoR)
  • Break backward-compatibility. If so, please list who may be influenced.

@codecov
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.06%. Comparing base (02be836) to head (44a6726).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #221   +/-   ##
=======================================
  Coverage   68.06%   68.06%           
=======================================
  Files         109      109           
  Lines        8527     8527           
=======================================
  Hits         5804     5804           
  Misses       2723     2723           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shivaahir158 shivaahir158 self-assigned this Oct 9, 2024
@ravikiranchollangi ravikiranchollangi merged commit 62ac4fc into main Oct 9, 2024
@ravikiranchollangi ravikiranchollangi deleted the task/RPE-130/FE-React-Jest-Test-for-ModalWindow.js branch October 9, 2024 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants