001package edu.samplu.krad.demo.uif.library; 002 003import com.thoughtworks.selenium.SeleneseTestBase; 004import edu.samplu.common.Failable; 005 006/** 007 * @author Kuali Rice Team (rice.collab@kuali.org) 008 */ 009 010public abstract class DemoLibraryNavigationBase extends DemoLibraryBase { 011 012 protected void assertNavigationView(String linkText, String supportTitleText) throws Exception { 013 waitAndClickByLinkText(linkText); 014 waitForElementPresentByClassName("uif-viewHeader-supportTitle"); 015 SeleneseTestBase.assertTrue(getTextByClassName("uif-viewHeader-supportTitle").contains(supportTitleText)); 016 } 017 018 019 protected void testNavigationView() throws Exception { 020 assertNavigationView("Page 2", "Test Course 2"); 021 assertNavigationView("Page 3", "Test Course 3"); 022 assertNavigationView("Page 1", "Test Course 1"); 023 } 024 025 public void testNavigationViewBookmark(Failable failable) throws Exception { 026 testNavigationView(); 027 passed(); 028 } 029}