Examples of BasicWorkFlow


Examples of org.zanata.workflow.BasicWorkFlow

            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Theory
    public void invalidEmailRejection(InvalidEmailAddressRFC2822 emailAddress)
            throws Exception {
        log.info(testName.getMethodName() + " : " + emailAddress);
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .goToRegistration()
                .enterEmail(emailAddress.toString())
                .registerFailure();
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

                return editorPageFinal.getStatistics();
            }
        }, Matchers.containsString("100%"));

        VersionLanguagesPage versionPage =
                new BasicWorkFlow().goToPage(String.format(
                        PROJECT_VERSION_TEMPLATE, "obsolete-test", "master"),
                        VersionLanguagesPage.class);
        assertThat(versionPage.getStatisticsForLocale("fr"),
                Matchers.equalTo("100.0%"));
    }
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

        assertThat(versionPage.getStatisticsForLocale("fr"),
                Matchers.equalTo("100.0%"));
    }

    private static EditorPage openEditor() {
        return new BasicWorkFlow().goToEditor("obsolete-test", "master", "fr",
                "message1");
    }
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    private TestFileGenerator testFileGenerator = new TestFileGenerator();

    @Before
    public void before() {
        zanataRestCaller = new ZanataRestCaller();
        new BasicWorkFlow().goToHome().deleteCookiesAndRefresh();
        assumeFalse(
                "",
                new File(CleanDocumentStorageRule.getDocumentStoragePath()
                        .concat(File.separator).concat("documents")
                        .concat(File.separator)).exists());
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

        // "not available" errors
        fields.put("email", "test@test.com");
        fields.put("username", "testusername");
        fields.put("name", "test");
        fields.put("password", "testpassword");
        homePage = new BasicWorkFlow().goToHome();
        homePage.deleteCookiesAndRefresh();
    }
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Feature(summary = "The user can access the login page from the register " +
            "page, and vice versa",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test
    public void signUpToLoginAndBack() {
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .clickSignInLink()
                .goToRegister();

        assertThat(registerPage.getPageTitle())
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Feature(summary = "The user can toggle the entered password visible and " +
            "masked",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test
    public void togglePasswordVisible() {
        RegisterPage registerPage = new BasicWorkFlow()
                .goToHome()
                .goToRegistration()
                .enterPassword("mypassword");

        assertThat(registerPage.getPasswordFieldType())
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    @Feature(summary = "The user can filter translation entries using more " +
            "than one search term",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void canFilterByMultipleFields() {
        EditorPage editorPage = new BasicWorkFlow()
                .goToEditor("about-fedora", "master", "fr", document);

        assertThat(editorPage.getMessageSources()).containsExactly(
                "hello world", "greetings", "hey");
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

                String.format(BasicWorkFlow.EDITOR_TEMPLATE, "about-fedora",
                        "master", "fr", document);
        String urlWithFilterCondition =
                urlForEditor + ";search:hello%20w;resid:res1";
        EditorPage editorPage =
                new BasicWorkFlow().goToPage(urlWithFilterCondition,
                        EditorPage.class);

        assertThat(editorPage.getMessageSources()).containsExactly("hello world");
        assertThat(editorPage.getFilterQuery().trim()).isEqualTo("text:hello w resource-id:res1");
    }
View Full Code Here

Examples of org.zanata.workflow.BasicWorkFlow

    private TestFileGenerator testFileGenerator = new TestFileGenerator();

    @Before
    public void before() {
        zanataRestCaller = new ZanataRestCaller();
        new BasicWorkFlow().goToHome().deleteCookiesAndRefresh();
        assumeFalse(
                "",
                new File(CleanDocumentStorageRule.getDocumentStoragePath()
                        .concat(File.separator).concat("documents")
                        .concat(File.separator)).exists());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.