1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.kew;
17
18 import org.junit.Test;
19 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21 import org.kuali.rice.testtools.selenium.WebDriverUtils;
22
23
24
25
26
27
28 public class QuickLinksAft extends WebDriverLegacyITBase {
29
30
31
32
33
34 public static final String BOOKMARK_URL =
35 AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Quicklinks&channelUrl=" + WebDriverUtils
36 .getBaseUrlString() + "/kew/QuickLinks.do";
37
38 @Override
39 protected String getBookmarkUrl() {
40 return BOOKMARK_URL;
41 }
42
43 @Override
44 protected void navigate() throws InterruptedException {
45 waitAndClickMainMenu();
46 waitAndClickByLinkText("Quicklinks");
47 }
48
49 protected void testQuickLinks() throws Exception {
50 selectFrameIframePortlet();
51 assertTextPresent(new String[] {"Quick Action List", "ENROUTE", "Route Log"});
52 }
53
54 @Test
55 public void testQuickLinksBookmark() throws Exception {
56 testQuickLinks();
57 passed();
58 }
59
60 @Test
61 public void testQuickLinksNav() throws Exception {
62 testQuickLinks();
63 passed();
64 }
65 }