View Javadoc
1   /**
2    * Copyright 2005-2015 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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   * Tests the Component section in Rice.
25   *
26   * @author Kuali Rice Team (rice.collab@kuali.org)
27   */
28  public class RoutingIdentityManagementDocumentTypeHierarchyAft extends WebDriverLegacyITBase {
29  
30      /**
31       * AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=Routing%20Report&channelUrl="
32       * + WebDriverUtils.getBaseUrlString() + "/kew/RoutingReport.do?returnLocation=" +
33       * AutomatedFunctionalTestUtils.PORTAL;
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  }