Package org.xwiki.test.ui.po

Examples of org.xwiki.test.ui.po.DeletePageOutcomePage


        // Delete the page.
        page.delete().clickYes();

        // Restore the page.
        page = new DeletePageOutcomePage().clickRestore();

        // Check the page title and content.
        assertEquals("A story", page.getDocumentTitle());
        assertEquals("Once upon a time..", page.getContent());
View Full Code Here


        ConfirmationPage confirmationPage = this.viewPage.delete();
        // This tests for regression of XWIKI-1388
        Assert.assertNotNull("The interface should not show the user as logged out while deleting page",
            confirmationPage.getCurrentUser());
        confirmationPage.clickYes();
        DeletePageOutcomePage deleteOutcome = new DeletePageOutcomePage();
        Assert.assertEquals(LOGGED_USERNAME, deleteOutcome.getPageDeleter());
        Assert.assertEquals(CONFIRMATION, deleteOutcome.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.xwiki.test.ui.po.DeletePageOutcomePage

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.