View Javadoc

1   package edu.samplu.krad.demo.uif.library;
2   
3   import com.thoughtworks.selenium.SeleneseTestBase;
4   import edu.samplu.common.Failable;
5   
6   /**
7    * @author Kuali Rice Team (rice.collab@kuali.org)
8    */
9   
10  public abstract class DemoLibraryNavigationBase extends DemoLibraryBase {
11  
12      protected void assertNavigationView(String linkText, String supportTitleText) throws Exception {
13          waitAndClickByLinkText(linkText);
14          waitForElementPresentByClassName("uif-viewHeader-supportTitle");
15          SeleneseTestBase.assertTrue(getTextByClassName("uif-viewHeader-supportTitle").contains(supportTitleText));
16      }
17  
18  
19      protected void testNavigationView() throws Exception {
20          assertNavigationView("Page 2", "Test Course 2");
21          assertNavigationView("Page 3", "Test Course 3");
22          assertNavigationView("Page 1", "Test Course 1");
23      }
24  
25      public void testNavigationViewBookmark(Failable failable) throws Exception {
26          testNavigationView();
27          passed();
28      }
29  }