1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.demo.uif.library.navigation;
17
18 import org.kuali.rice.krad.demo.uif.library.DemoLibraryBase;
19
20
21
22
23
24 public abstract class DemoLibraryNavigationBase extends DemoLibraryBase {
25
26 protected void assertNavigationView(String linkText, String supportTitleText) throws Exception {
27 waitAndClickByLinkText(linkText);
28 waitForElementPresentByClassName("uif-viewHeader-supportTitle", "DemoLibraryNavigationBase");
29 assertTrue("DemoLibraryNavigationBase", getTextByClassName("uif-viewHeader-supportTitle").contains(supportTitleText));
30 }
31
32
33 protected void testNavigationView() throws Exception {
34 assertNavigationView("Page 2", "Test Course 2");
35 assertNavigationView("Page 3", "Test Course 3");
36 assertNavigationView("Page 1", "Test Course 1");
37 }
38 }