Unit test for permission dialog #806
- introduce classes to make it easier to locate elements
- implement a "reasonable" use case with two roles, clerk and admin