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 RoutingIdentityManagementDocumentTypeHierarchyAft extends WebDriverLegacyITBase {
29
30
31
32
33
34
35 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL
36 + "?channelTitle=Routing%20and%20Identity%20Management%20Document%20Type%20Hierarchy&channelUrl="
37 + WebDriverUtils.getBaseUrlString()
38 + "/kew/RuleQuickLinks.do";
39
40 @Override
41 protected String getBookmarkUrl() {
42 return BOOKMARK_URL;
43 }
44
45 @Override
46 protected void navigate() throws InterruptedException {
47 waitAndClickMainMenu();
48 waitAndClickByLinkText("Routing and Identity Management Document Type Hierarchy");
49 }
50
51 protected void testRoutingIdentityManagementDocumentTypeHierarchy() throws Exception {
52 selectFrameIframePortlet();
53 waitAndClickByXpath("//input[@id='tab-SendNotificationRequest-imageToggle']");
54 assertTextPresent("RequestsNode");
55 assertTextPresent("ReviewersNode");
56 waitAndClickByXpath("//input[@id='tab-eDocExample1ParentDocument-imageToggle']");
57 assertTextPresent("eDoc.Example1.Node1");
58 waitAndClickByXpath("//input[@id='tab-KualiDocument-imageToggle']");
59 assertTextPresent("Rice Document (RiceDocument)");
60 assertTextPresent("Edit Document Type");
61 assertTextPresent("View Document Configuration");
62 assertTextPresent("Agenda Maintenance Document (AgendaMaintenanceDocument)");
63 }
64
65 @Test
66 public void testRoutingIdentityManagementDocumentTypeHierarchyBookmark() throws Exception {
67 testRoutingIdentityManagementDocumentTypeHierarchy();
68 passed();
69 }
70
71 @Test
72 public void testRoutingIdentityManagementDocumentTypeHierarchyNav() throws Exception {
73 testRoutingIdentityManagementDocumentTypeHierarchy();
74 passed();
75 }
76 }