Test Plan - tomerye11/project-for-community GitHub Wiki

Test ID Test Description Pre Conditions Test Steps Test Data (inputs) Expected Results
T001 Filling out the volunteer registration form The form is open and displayed to the user 1. Fill required fields
2. Select volunteer area
3. Click 'Submit'
Valid personal details, valid email, valid phone number The form is submitted successfully, a confirmation message is displayed, and all fields are cleared.
T002 Validation for required fields The form is open and displayed to the user 1. Leave all fields empty
2. Click 'Submit'
N/A Error messages are displayed for all required fields.
T003 Verify that the system requires a police clearance form when a male volunteer selects a volunteer area involving children User is on the registration page, and a male volunteer selects a volunteer area involving children 1. Select a volunteer area involving children.
2. Attempt to submit the form without uploading a police clearance form.
Male volunteer, volunteer area involving children, no police clearance form An error message appears, requiring the upload of a police clearance form.
T004 Uploading police approval document The form is open and user selects a volunteer area with children 1. Fill required fields and select a volunteer area
2. Upload police approval document
Police approval document: police_approval.pdf The form is submitted successfully, and the document is uploaded.
T005 Verify that the system accepts only PDF files for the police clearance document User is on the registration page and needs to upload a police clearance form 1. Attempt to upload a police clearance document with an invalid file extension (e.g., .doc, .jpg).
2. Click on the "Submit" button.
3. Attempt to upload a police clearance document with a valid PDF extension.
4. Click on the "Submit" button
Police clearance documents with different file extensions (.doc, .jpg, .pdf) For invalid file extensions: An error message appears, indicating that only PDF files are accepted.

For valid PDF file: The form is submitted successfully if all other required fields are correctly filled.
T006 Handling duplicate volunteer ID The form is open and displayed to the user 1. Fill required fields
2. Provide duplicate ID
3. Click 'Submit'
Valid personal details, valid email, valid phone number Update the user's fields in the database for this ID.
T007 Verify that valid data is saved in the database User is on the registration page 1. Fill in all fields with valid data.
2. Click on the "Submit" button.
Valid personal details, valid email, valid phone number Data is saved in the database, and a confirmation message is displayed
T008 Adding volunteer areas to the form The "Add New Volunteer Area" page is displayed to the admin. 1. Add new volunteer areas N/A The new volunteer areas are displayed on the form.
T009 Accept a registration form by the admin Volunteer has submitted a registration form 1. Review the submitted registration form.
2. Approve or reject the form
Submitted registration form The Bituah Leumi form is filled in with the correct information and saved in the database.
T010 Sending WhatsApp group link Volunteer registration is approved 1. Approve a volunteer's registration.
2. Verify that an email with the WhatsApp group link is sent
Approved volunteer details An email with the WhatsApp group link is sent to the volunteer.
T011 Sending renewal of volunteering message Volunteer time period is about to expire. 1. Send renewal email N/A The user receives a renewal email.
⚠️ **GitHub.com Fallback** ⚠️