VREP is a user-friendly web application designed to streamline administrative tasks and enhance educational workflows for elementary schools. It empowers schools to effectively manage student enrollment, conduct and evaluate exams, track results, and stay informed about upcoming school events.
Added tests for validating permissions of different user roles as requested in the issue.
Updated the roles.test.ts file to include comprehensive tests for UserRole interface and userRoles object as
requested in the issue.
Test Overview:
The test suite verifies that each user role (admin, headTeacher, staff, pupil) has the expected set of permissions as
defined in the system as requested in the issue.
Test Cases:
userRoles Structure Verification: Ensures that the structure of userRoles matches the UserRole interface.
Admin Role Permissions: Verifies that the admin role has specific permissions.
Head Teacher Role Permissions: Validates permissions for the head teacher role.
Staff Role Permissions: Tests permissions assigned to staff role.
Pupil Role Permissions: Checks permissions assigned to the pupil role.
Purpose:
This PR aims to ensure that the permissions assigned to each user role are accurate as requested in the issue.
Changes Made:
Added tests for validating permissions of different user roles as requested in the issue.
Updated the
roles.test.ts
file to include comprehensive tests forUserRole interface
anduserRoles object
as requested in the issue.Test Overview:
The test suite verifies that each user role (admin, headTeacher, staff, pupil) has the expected set of permissions as defined in the system as requested in the issue.
Test Cases:
userRoles Structure Verification: Ensures that the structure of userRoles matches the UserRole interface.
Admin Role Permissions
: Verifies that the admin role has specific permissions.Head Teacher Role Permissions
: Validates permissions for the head teacher role.Staff Role Permissions
: Tests permissions assigned to staff role.Pupil Role Permissions
: Checks permissions assigned to the pupil role.Purpose: This PR aims to ensure that the permissions assigned to each user role are accurate as requested in the issue.