@Feature(summary = "The administrator can create a rule to assign roles " +
"at user sign in",
tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void createAutoRoleAssignment() throws Exception {
RoleAssignmentsPage roleAssignmentsPage = new LoginWorkFlow()
.signIn("admin", "admin")
.goToAdministration()
.goToManageRoleAssignments()
.clickCreateNew()
.enterIdentityPattern(".+ransla.+")
.selectRole("admin")
.saveRoleAssignment()
.cancelEditRoleAssignment();
assertThat(roleAssignmentsPage.getRulesByPattern())
.contains(".+ransla.+")
.as("The rule was created");
roleAssignmentsPage.logout();
{
// TODO: Bug? Remove me
new LoginWorkFlow()
.signIn("translator", "translator")
.logout();