Examples of RegisterPage


Examples of org.xwiki.test.ui.framework.elements.RegisterPage

    }

    public RegisterPage clickAddNewUser()
    {
        this.addNewUserButton.click();
        RegisterPage rp = new LightBoxRegisterPage();
        return rp;
    }
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.RegisterPage

    }

    /** To put the registration page someplace else, subclass this class and change this method. */
    protected RegisterPage getRegisterPage()
    {
        return new RegisterPage();
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

                        "User has logged in! You should sign out or delete cookie first in your test.");

        WebElement registerLink =
                getDriver().findElement(By.id("register_link_internal_auth"));
        registerLink.click();
        return new RegisterPage(getDriver());
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

            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();

        assertThat(registerPage.expectError(RegisterPage.MALFORMED_EMAIL_ERROR))
                .contains(RegisterPage.MALFORMED_EMAIL_ERROR)
                .as("The email formation error is displayed");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

    @Feature(summary = "The user can register an account with Zanata",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 86816)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    @Category(BasicAcceptanceTest.class)
    public void registerSuccessful() throws Exception {
        RegisterPage registerPage = homePage
                .goToRegistration()
                .setFields(fields);

        assertThat(registerPage.getErrors())
                .as("No errors are shown")
                .isEmpty();

        homePage = registerPage.register();

        assertThat(homePage.getNotificationMessage())
                .isEqualTo(HomePage.SIGNUP_SUCCESS_MESSAGE)
                .as("Sign up is successful");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

            "20 (inclusive) characters to register",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void usernameLengthValidation() throws Exception {
        fields.put("email", "length.test@test.com");
        RegisterPage registerPage = homePage.goToRegistration();

        fields.put("username", "bo");
        registerPage = registerPage.setFields(fields);

        assertThat(containsUsernameError(registerPage.getErrors()))
                .isTrue()
                .as("Size errors are shown for string too short");

        fields.put("username", "testusername");
        registerPage = registerPage.setFields(fields);

        assertThat(containsUsernameError(registerPage.getErrors()))
                .isFalse()
                .as("Size errors are not shown");

        fields.put("username", "12345678901234567890a");
        registerPage = registerPage.setFields(fields);

        assertThat(containsUsernameError(registerPage.getErrors()))
                .isTrue()
                .as("Size errors are shown for string too long");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

    @Feature(summary = "The user must enter a unique username to register",
        tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void usernamePreExisting() throws Exception {
        RegisterPage registerPage = homePage
                .goToRegistration()
                .enterUserName("admin");
        registerPage.defocus();

        assertThat(registerPage.expectError(
                    RegisterPage.USERNAME_UNAVAILABLE_ERROR))
                .contains(RegisterPage.USERNAME_UNAVAILABLE_ERROR)
                .as("Username not available message is shown");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void emailValidation() throws Exception {
        fields.put("email",
                InvalidEmailAddressRFC2822.PLAIN_ADDRESS.toString());
        fields.put("username", "emailvalidation");
        RegisterPage registerPage = homePage
                .goToRegistration()
                .setFields(fields);
        registerPage.defocus();

        assertThat(registerPage.getErrors())
                .contains(RegisterPage.MALFORMED_EMAIL_ERROR)
                .as("Email validation errors are shown");
    }
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

    public void requiredFields() throws Exception {
        fields.put("name", "");
        fields.put("username", "");
        fields.put("email", "");
        fields.put("password", "");
        RegisterPage registerPage =
                homePage.goToRegistration().setFields(fields);
        registerPage.defocus();

        assertThat(registerPage.getErrors(4)).containsExactly(
                RegisterPage.REQUIRED_FIELD_ERROR,
                RegisterPage.USERNAME_VALIDATION_ERROR,
                RegisterPage.REQUIRED_FIELD_ERROR,
                RegisterPage.REQUIRED_FIELD_ERROR)
                .as("Value is required shows for all fields");
View Full Code Here

Examples of org.zanata.page.account.RegisterPage

    @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())
                .isEqualTo("Sign up with Zanata")
                .as("The user is sent to the register page");

        SignInPage signInPage = registerPage.goToSignIn();

        assertThat(signInPage.getPageTitle())
                .isEqualTo("Log in with your username")
                .as("The user is sent to the log in page");
    }
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.