View Javadoc

1   /*
2    * Copyright 2005-2013 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  
17  package edu.samplu.krad.configview;
18  
19  import edu.samplu.common.ITUtil;
20  import edu.samplu.common.WebDriverLegacyITBase;
21  
22  import org.junit.Test;
23  
24  /**
25   * Selenium test that tests collections
26   * 
27   * @author Kuali Rice Team (rice.collab@kuali.org)
28   */
29  public class CollectionsNavIT extends WebDriverLegacyITBase {
30  
31      /**
32       * (//a[contains(text(),'Collections Configuration Test View')])[2]
33       */
34      public static final String TEXT_COLLECTIONS_CONFIGURATION_TEST_VIEW_XPATH =
35              "(//a[contains(text(),'Collections Configuration Test View')])[2]";
36  
37      /**
38       * Kuali :: Collection Test View
39       */
40      public static final String KUALI_COLLECTION_WINDOW_TITLE = "Kuali :: Collection Test View";
41  
42      @Override
43      public String getTestUrl() {
44          return ITUtil.PORTAL;
45      }
46  
47      /**
48       * Test adding a column of values to the Default Tests Table Layout
49       */
50      @Test
51      public void testDefaultTestsTableLayout() throws Exception {
52          navigate();
53          super.testDefaultTestsTableLayout();
54          passed();
55      }
56  
57      private void navigate() throws InterruptedException {
58          waitAndClickKRAD();
59          waitAndClickByXpath(TEXT_COLLECTIONS_CONFIGURATION_TEST_VIEW_XPATH);
60          switchToWindow(KUALI_COLLECTION_WINDOW_TITLE);
61      }
62  
63      /**
64       * Test adding a column of values to the Add Blank Line Tests Table Layout
65       */
66      @Test
67      public void testAddBlankLine() throws Exception {
68          navigate();
69          super.testAddBlankLine();
70          passed();
71      }
72  
73      /**
74       * Test action column placement in table layout collections
75       */
76      @Test
77      public void testActionColumnPlacement() throws Exception {
78          navigate();
79          super.testActionColumnPlacement();
80          passed();
81      }
82  
83      @Test
84      public void testAddViaLightbox() throws Exception {
85          navigate();
86          super.testAddViaLightbox();
87          passed();
88      }
89  
90      @Test
91      public void testColumnSequence() throws Exception {
92          navigate();
93          super.testColumnSequence();
94          passed();
95      }
96  
97      @Test
98      public void testSequencerow() throws Exception {
99          navigate();
100         super.testSequencerow();
101         passed();
102     }
103 
104 }