Examples of clickIndexTab()


Examples of org.xwiki.test.ui.xe.elements.AllDocsPage.clickIndexTab()

    {
        AllDocsPage page = new AllDocsPage();
        page.gotoPage();

        // Test 1: Verify that the Action column is displayed only for administrators.
        LiveTableElement livetable = page.clickIndexTab();
        Assert.assertTrue("No Actions column found", livetable.hasColumn("Actions"));
        page.logout();
        livetable = page.clickIndexTab();
        Assert.assertFalse("Actions column shouldn't be visible for guests", livetable.hasColumn("Actions"));
        page.login().loginAsAdmin();
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.AllDocsPage.clickIndexTab()

        // Test 1: Verify that the Action column is displayed only for administrators.
        LiveTableElement livetable = page.clickIndexTab();
        Assert.assertTrue("No Actions column found", livetable.hasColumn("Actions"));
        page.logout();
        livetable = page.clickIndexTab();
        Assert.assertFalse("Actions column shouldn't be visible for guests", livetable.hasColumn("Actions"));
        page.login().loginAsAdmin();

        // Test 2: Verify filtering works by filtering on the document name
        // TODO: the line below fails from time to time. Fix it.
View Full Code Here

Examples of org.xwiki.test.ui.xe.elements.AllDocsPage.clickIndexTab()

        Assert.assertFalse("Actions column shouldn't be visible for guests", livetable.hasColumn("Actions"));
        page.login().loginAsAdmin();

        // Test 2: Verify filtering works by filtering on the document name
        // TODO: the line below fails from time to time. Fix it.
        livetable = page.clickIndexTab();
        // TODO: it seems that it doesn't work sometimes. Fix it.
        livetable.filterColumn("xwiki-livetable-alldocs-filter-1", "Treeview");
    }
}
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.