Package org.zanata.page.groups

Examples of org.zanata.page.groups.VersionGroupsPage


    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    @Category(BasicAcceptanceTest.class)
    public void createABasicGroup() throws Exception {
        String groupID = "basic-group";
        String groupName = "A Basic Group";
        VersionGroupsPage versionGroupsPage = dashboardPage
                .goToGroups()
                .createNewGroup()
                .inputGroupId(groupID)
                .inputGroupName(groupName)
                .inputGroupDescription("A basic group can be saved")
                .saveGroup();
        assertThat(versionGroupsPage.getGroupNames())
                .contains(groupName)
                .as("The version group was created");
        VersionGroupPage groupView = versionGroupsPage.goToGroup(groupName);
        assertThat(groupView.getTitle())
                .isEqualTo("Zanata: Groups - ".concat(groupName))
                .as("The group is displayed");
    }
View Full Code Here


        assertThat(groupPage.getErrors())
                .contains(CreateVersionGroupPage.LENGTH_ERROR)
                .as("Invalid length error is shown");

        groupDescription = groupDescription.substring(0, 100);
        VersionGroupsPage verGroupsPage = groupPage
                .clearFields()
                .inputGroupId("verifyDescriptionFieldSizeID")
                .inputGroupName(groupName)
                .inputGroupDescription(groupDescription)
                .saveGroup();

        assertThat(verGroupsPage.getGroupNames())
                .contains(groupName)
                .as("A group description of 100 chars is valid");
    }
View Full Code Here

    }

    public VersionGroupsPage goToGroups() {
        log.info("Click Groups");
        clickNavMenuItem(groupsLink);
        return new VersionGroupsPage(getDriver());
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.groups.VersionGroupsPage

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.