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 String[][] travelAccountLabeledText = {{"Travel Account Number:", "a14"},
44 {"Travel Account Name:", "Travel Account 14"},
45 {"Code And Description:", "CAT - Clearing"},
46
47 {"Date Created:", "/"}};
48
49 String fiscalOfficer = waitForLabeledText("Fiscal Officer User ID:");
50 String fiscalOfficerName = waitForLabeledText("Fiscal Officer Name:");
51 String[][] fiscalOfficerLabeledText = {{"Fiscal Officer User ID:", fiscalOfficer},
52 {"Fiscal Officer:", fiscalOfficer},
53 {"Fiscal Officer Name:", fiscalOfficerName}};
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 assertLabeledTextPresent(travelAccountLabeledText);
69 assertLabeledTextPresent(fiscalOfficerLabeledText);
70 clickCollapseAll();
71 assertLabeledTextNotPresent(travelAccountLabeledText);
72 assertLabeledTextNotPresent(fiscalOfficerLabeledText);
73 clickExpandAll();
74 assertLabeledTextPresent(travelAccountLabeledText);
75 assertLabeledTextPresent(fiscalOfficerLabeledText);
76 }
77
78 @Test
79 public void testInquiryDefaultInquirableBookmark() throws Exception {
80 testInquiryDefaultInquirable();
81 passed();
82 }
83
84 @Test
85 public void testInquiryDefaultInquirableNav() throws Exception {
86 testInquiryDefaultInquirable();
87 passed();
88 }
89 }