Closed mZneit closed 2 years ago
@mZneit I figured that to test the roles, we'll have to fill those roles into the test database and manually assign permissions to them, that wouldn't be too much different from testing the permissions directly. Do you think it would be a better idea to just test the specific permissions?
Yes, I think it's better to just test specific permissions.
@mZneit and I discussed this. This test would not be considered a unit test and thus would be quite involved. We don't feel that the benefits outweigh the effort required.
Test if a certain role has the permission to access a certain page or directed to a 403 page for example. This wiki page has the list of all permissions for each role. https://github.com/ponder-lab/Imperative-DL-Study-Web-App/wiki/Roles