Package org.zanata.page.administration

Examples of org.zanata.page.administration.RoleAssignmentsPage


    @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();
View Full Code Here

TOP

Related Classes of org.zanata.page.administration.RoleAssignmentsPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.