Package org.zanata.workflow

Examples of org.zanata.workflow.ProjectWorkFlow


                .gotoSettingsTranslationTab()
                .setValidationLevel("Tab characters (\\t)", "Error");

        assumeTrue("RHBZ1017458", versionTranslationTab.hasNoCriticalErrors());

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("about fedora")
                .gotoVersion("master")
                .translate("fr", "About_Fedora");

        assertThat(editorPage.getBasicTranslationTargetAtRowIndex(0))
View Full Code Here


                .gotoSettingsTranslationTab()
                .setValidationLevel("Tab characters (\\t)", "Error");

        assumeTrue("RHBZ1017458", versionTranslationTab.hasNoCriticalErrors());

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("about fedora")
                .gotoVersion("master")
                .translate("fr", "About_Fedora")
                .openValidationOptions();
View Full Code Here

                .gotoSettingsTranslationTab()
                .setValidationLevel("Tab characters (\\t)", "Off");

        assumeTrue("RHBZ1017458", versionTranslationTab.hasNoCriticalErrors());

        EditorPage editorPage = new ProjectWorkFlow()
                .goToProjectByName("about fedora")
                .gotoVersion("master")
                .translate("fr", "About_Fedora")
                .pasteIntoRowAtIndex(0, "\t")
                .saveAsFuzzyAtRow(0);
View Full Code Here

    public void createABasicProject() throws Exception {
        assertThat(new LoginWorkFlow().signIn("admin", "admin").loggedInAs())
                .isEqualTo("admin")
                .as("User logs in");

        ProjectVersionsPage projectVersionsPage = new ProjectWorkFlow()
                .createNewSimpleProject("basicproject", "basicproject");

        assertThat(projectVersionsPage.getProjectName().trim())
                .isEqualTo("basicproject")
                .as("The project name is correct");
View Full Code Here

        assertThat(new LoginWorkFlow().signIn("admin", "admin").loggedInAs())
                .isEqualTo("admin")
                .as("Admin can log in");

        ProjectBasePage projectPage =
                new ProjectWorkFlow().createNewProject(projectSettings);

        assertThat(projectPage.getProjectName().trim())
                .isEqualTo(projectSettings.get("Name"))
                .as("The project name is correct");
View Full Code Here

                testFileGenerator.generateTestFileWithContent(
                        "uploadedDocumentIsInFilesystem", ".txt",
                        "This is a test file");
        String testFileName = originalFile.getName();

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

    public void cancelFileUpload() {
        File cancelUploadFile =
                testFileGenerator.generateTestFileWithContent(
                        "cancelFileUpload", ".txt", "Cancel File Upload Test");

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

            .as("Document does not show in table");
    }

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void emptyFilenameUpload() {
        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton();
View Full Code Here

        testFileGenerator.forceFileSize(bigFile, fileSizeInMB);

        assumeTrue("Data file " + bigFile.getName() + " is big",
                bigFile.length() == fileSizeInMB);

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
View Full Code Here

                testFileGenerator.generateTestFileWithContent("thereIsNoSpoon",
                        ".txt", "This file will be deleted");
        String successfullyUploaded =
                "Document " + noFile.getName() + " uploaded.";

        VersionDocumentsTab versionDocumentsTab = new ProjectWorkFlow()
                .goToProjectByName("uploadtest")
                .gotoVersion("txt-upload")
                .gotoSettingsTab()
                .gotoSettingsDocumentsTab()
                .pressUploadFileButton()
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.