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.LibraryBase;
19
20
21
22
23
24 public abstract class LibraryNavigationBase extends LibraryBase {
25
26 protected void assertNavigationView(String linkText, String supportTitleText) throws Exception {
27 waitAndClickByLinkText(linkText);
28 waitForElementPresentByClassName("uif-viewHeader-supportTitle", "LibraryNavigationBase");
29 waitForProgressLoading();
30 assertTrue("LibraryNavigationBase", getTextByClassName("uif-viewHeader-supportTitle").contains(supportTitleText));
31 }
32
33
34 protected void testNavigationView() throws Exception {
35 assertNavigationView("Page 2", "Test Course 2");
36 assertNavigationView("Page 3", "Test Course 3");
37 assertNavigationView("Page 1", "Test Course 1");
38 }
39 }