-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated testing the bug report form functionalities (User Story 2) #43
base: f24
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 11420953015Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests look clear and cover all relevant functionalities!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test file comprehensively covers the bug report form’s functionality and behavior.
The tests seem to address both data validation and error handling. The tests ensure that the code:
- Correctly fetches and logs data prior to form submission.
- The email field is validated based on proper format.
- The required fields cannot be submitted if left empty.
- Appropriate error messages are displayed when validation fails.
There seems to be no major concerns with regards to coverage and logic. This is definitely a result of the test cases being well-defined . Therefore, the code is ready to be merged.
Created a test file to test the functionalities of the bug report form
The file test/bug-report-form.js tests how the bug report form should work in a variety of ways: (1) The form fetches and logs data correctly upon submission, (2) The email field is validated for proper format, (3) The name field cannot be submitted if left empty, (4) The email field must not be empty, and (5) The bug description cannot be empty as well. Each test validates the form’s ability to handle these cases by checking that submission is prevented when necessary and appropriate error messages are displayed. The tests provide comprehensive coverage to validate the form’s functionality.
This test the submission process of the form and the data collected of issue #17.