Package org.xwiki.test.ui.administration.elements

Examples of org.xwiki.test.ui.administration.elements.ProfileUserProfilePage


        this.greenMail = new GreenMail();
        this.greenMail.start();

        String userName = RandomStringUtils.randomAlphanumeric(5);

        this.profilePage = new ProfileUserProfilePage(userName);

        getUtil().registerLoginAndGotoPage(profilePage.getUsername(), "password", profilePage.getURL());

        // Set the Admin user's email address to use a localhost domain so that the mail is caught by our
        // GreenMail Mock mail server.
View Full Code Here


    @Before
    public void setUp()
    {
        String userName = RandomStringUtils.randomAlphanumeric(5);

        ProfileUserProfilePage profilePage = new ProfileUserProfilePage(userName);

        getUtil().registerLoginAndGotoPage(profilePage.getUsername(), "password", profilePage.getURL());

        this.watchlistPage = profilePage.switchToWatchlist();

        this.testSpace = this.watchlistPage.getUsername() + "Test";
    }
View Full Code Here

    @Before
    public void setUp()
    {
        this.userName = RandomStringUtils.randomAlphanumeric(5);
        String password = RandomStringUtils.randomAlphanumeric(6);
        this.customProfilePage = new ProfileUserProfilePage(this.userName);
        getUtil().registerLoginAndGotoPage(this.userName, password, this.customProfilePage.getURL());
    }
View Full Code Here

    // Note: We're not testing basic inline editing since this is already covered by the User Profile tests

    @Test
    public void testEditButtonTriggersInlineEditing()
    {
        ProfileUserProfilePage pupp = new ProfileUserProfilePage("Admin");
        pupp.gotoPage();
        // Clicking edit should perform inline editing.
        pupp.edit();
        pupp.waitForProfileEditionToLoad();
        Assert.assertTrue(new ViewPage().isInlinePage());
    }
View Full Code Here

    @Test
    public void testEditModeCanBeSet()
    {
        String initialContent = null;
        try {
            ProfileUserProfilePage pupp = new ProfileUserProfilePage("Admin");
            pupp.gotoPage();
            WikiEditPage wep = pupp.editWiki();
            initialContent = wep.getContent();
            wep.setContent("{{velocity}}$xcontext.setDisplayMode('edit'){{/velocity}}\n" + initialContent);
            wep.clickSaveAndView();
            Assert.assertTrue(getDriver().getPageSource().contains("XWiki.XWikiUsers_0_last_name"));
        } finally {
View Full Code Here

TOP

Related Classes of org.xwiki.test.ui.administration.elements.ProfileUserProfilePage

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.