Background
Access to Import Forms can be governed by role based access.
Ensuring that only those users who have been approved to access a form is important so that regulations and auditing are not compromised.
This spec tests role based permissions on an Import Form, and ensures that a user with permissions can access the form, and a user without permissions cannot access the forms.
Specification
This spec verifies two use cases:
User with permissions should be able to access a permission protected form
Verification Process:
Create a Form and set permissions requirements for the form by Role
Create a Person and assign the required role to the Person
Impersonate the Person, and verify that the user CAN access the form
User without permissions should not be able to access a permission protected form
Verification Process:
Create and Form and set permission requirements for the form by role
Create a Person and DO NOT assign the required role to the Person
Impersonate the Person, and verify that the user CANNOT access the form