1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.demo.lookup.resultlimit;
17
18 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
19 import org.junit.Ignore;
20 import org.junit.Test;
21
22
23
24
25 public class DemoSampleLookUpResultLimitAft extends WebDriverLegacyITBase {
26
27
28
29
30 public static final String BOOKMARK_URL = "/kr-krad/lookup?methodToCall=start&viewId=LookupSampleViewResultsLimit&hideReturnLink=true";
31
32
33
34
35 public static final String SEARCH = "Search";
36
37 @Override
38 protected String getBookmarkUrl() {
39 return BOOKMARK_URL;
40 }
41
42 @Override
43 protected void navigate() throws Exception {
44 waitAndClickById("Demo-DemoLink", "");
45 waitAndClickByLinkText("Lookup Results Limit");
46 }
47
48 protected void testDemoSampleLookUpResultLimit() throws Exception {
49 waitAndTypeByName("lookupCriteria[number]", "a*");
50 waitAndClickButtonByText(SEARCH);
51 Thread.sleep(3000);
52 if(isElementPresentByXpath("//table[@class='table table-condensed table-bordered uif-tableCollectionLayout dataTable']/tbody/tr[3]")) {
53 fail("Search Results contains more than 2 rows.");
54 }
55 }
56
57 @Ignore
58 @Test
59 public void testDemoSampleLookUpResultLimitNav() throws Exception {
60 testDemoSampleLookUpResultLimit();
61 passed();
62 }
63
64 @Ignore
65 @Test
66 public void testDemoDemoSampleLookUpResultLimitBookmark() throws Exception {
67 testDemoSampleLookUpResultLimit();
68 passed();
69 }
70 }