1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.labs.inquiries;
17
18 import org.junit.Test;
19
20
21
22
23 public class LabsInquiryDefaultInquirableAft extends LabsInquiryBase {
24
25
26
27
28 public static final String BOOKMARK_URL = "/kr-krad/kradsampleapp?viewId=KradInquirySample-PageR1C2";
29
30 @Override
31 protected String getBookmarkUrl() {
32 return BOOKMARK_URL;
33 }
34
35 @Override
36 protected void navigate() throws Exception {
37 navigateToInquiry("Inquiry - default inquirable");
38 }
39
40 protected void testInquiryDefaultInquirable() throws InterruptedException {
41 waitAndClickByLinkText("Travel Account Inquiry");
42
43
44 waitAndClickLinkContainingText("a14");
45 gotoLightBox();
46 String[][] lightBoxTravelAccountLabeledText = {{"Travel Account Number:", "a14"},
47 {"Travel Account Name:", "Travel Account 14"},
48 {"Code And Description:", "CAT - Clearing"},
49
50 };
51 String[][] lightBoxFiscalOfficerLabeledText = {{"Travel Account Number:", "a14"},
52 {"Fiscal Officer User ID:", "fran"},
53 {"Fiscal Officer Name:", "fran, fran"}};
54 assertLabeledTextPresent(lightBoxTravelAccountLabeledText);
55 assertLabeledTextPresent(lightBoxFiscalOfficerLabeledText);
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70 clickCollapseAll();
71 assertLabeledTextNotPresent(lightBoxTravelAccountLabeledText);
72 assertLabeledTextNotPresent(lightBoxFiscalOfficerLabeledText);
73 clickExpandAll();
74 assertLabeledTextPresent(lightBoxTravelAccountLabeledText);
75 assertLabeledTextPresent(lightBoxFiscalOfficerLabeledText);
76 waitAndClickButtonByText(CLOSE);
77 selectTopFrame();
78 assertLabeledTextPresent(lightBoxTravelAccountLabeledText);
79 assertLabeledTextPresent(lightBoxFiscalOfficerLabeledText);
80 clickCollapseAll();
81 assertLabeledTextNotPresent(lightBoxTravelAccountLabeledText);
82 assertLabeledTextNotPresent(lightBoxFiscalOfficerLabeledText);
83 clickExpandAll();
84 assertLabeledTextPresent(lightBoxTravelAccountLabeledText);
85 assertLabeledTextPresent(lightBoxFiscalOfficerLabeledText);
86 }
87
88 @Test
89 public void testInquiryDefaultInquirableBookmark() throws Exception {
90 testInquiryDefaultInquirable();
91 passed();
92 }
93
94 @Test
95 public void testInquiryDefaultInquirableNav() throws Exception {
96 testInquiryDefaultInquirable();
97 passed();
98 }
99 }