Package org.zanata.workflow

Examples of org.zanata.workflow.ProjectWorkFlow


    public void translateBasicOpenOfficeFile(String extension) {
        File testfile = testFileGenerator
                .openTestFile("test-" + extension + "." + extension);
        zanataRestCaller.createProjectAndVersion(extension+"-translate",
                extension, "file");
        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName(extension+"-translate")
                .gotoVersion(extension)
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here


    public void translateBasicTextFile() {
        File testfile = testFileGenerator.generateTestFileWithContent(
                "basictext",".txt",
                "Line One\nLine Two\nLine Three");
        zanataRestCaller.createProjectAndVersion("txt-translate", "txt", "file");
        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("txt-translate")
                .gotoVersion("txt")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void translateBasicIdmlFile() {
        zanataRestCaller.createProjectAndVersion("idml-translate", "idml", "file");
        File testfile = testFileGenerator.openTestFile("test-idml.idml");

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("idml-translate")
                .gotoVersion("idml")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    public SampleProjectRule sampleProjectRule = new SampleProjectRule();

    @Test
    public void showTranslationHistory() {
        new LoginWorkFlow().signIn("admin", "admin");
        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("about fedora")
                .gotoVersion("master")
                .translate("pl", "About_Fedora")
                .translateTargetAtRowIndex(0, "historytest")
                .saveAsFuzzyAtRow(0)
View Full Code Here

    }

    @Test
    public void compareTranslationHistory() {
        new LoginWorkFlow().signIn("admin", "admin");
        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("about fedora")
                .gotoVersion("master")
                .translate("pl", "About_Fedora")
                .translateTargetAtRowIndex(0, "historytest")
                .saveAsFuzzyAtRow(0)
View Full Code Here

                .signIn("admin", "admin")
                .loggedInAs())
                .isEqualTo("admin")
                .as("Admin user has logged in");

        VersionLanguagesTab versionLanguagesTab = new ProjectWorkFlow()
                .goToProjectByName("langoverride")
                .gotoVersion("overridelangtest")
                .gotoSettingsTab()
                .gotoSettingsLanguagesTab()
                .clickInheritCheckbox()
View Full Code Here

                "testhtmlfile", ".html",
                "<html><title>Test content</title>" +
                "<br>This is <b>Bold</b> text</html>"
        );
        String testFileName = htmlfile.getName();
        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("html-project")
                .gotoVersion("html-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

                .signIn("translator", "translator")
                .loggedInAs())
                .isEqualTo("translator")
                .as("Login as translator");

        ProjectVersionsPage projectVersionsPage = new ProjectWorkFlow()
                .goToProjectByName(projectName)
                .waitForDisplayedVersions(2);

        assertVersions(projectVersionsPage, 2, new String[]{"bravo", "alpha"});
View Full Code Here

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .doesNotContain("translator")
                .as("The translator user is not a maintainer");

        projectPermissionsTab = new ProjectWorkFlow()
                .addMaintainer("about fedora", "translator");

        assertThat(projectPermissionsTab.getSettingsMaintainersList())
                .contains("translator")
                .as("The translator user is a maintainer");
View Full Code Here

                .signIn("translator", "translator")
                .loggedInAs())
                .isEqualTo("translator")
                .as("Translator has signed in");

        ProjectPermissionsTab projectPermissionsTab = new ProjectWorkFlow()
                .goToProjectByName("addmaintainer")
                .gotoSettingsTab()
                .gotoSettingsPermissionsTab()
                .enterSearchMaintainer("glossarist")
                .selectSearchMaintainer("glossarist");
View Full Code Here

TOP

Related Classes of org.zanata.workflow.ProjectWorkFlow

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.