1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.krad.travelview;
17
18 import edu.samplu.common.KradMenuITBase;
19 import org.junit.Test;
20
21 import static org.junit.Assert.*;
22
23
24
25
26 public class MaintenanceAdHocRecipientsIT extends KradMenuITBase {
27
28 @Override
29 protected String getLinkLocator() {
30 return "link=Travel Account Maintenance (New)";
31 }
32
33 @Test
34
35
36
37 public void testVerifyAdHocRecipients() throws Exception {
38 gotoMenuLinkLocator();
39 waitAndClick("css=a > span:contains(Fiscal Officer Accounts)");
40
41
42
43
44
45
46
47
48
49
50
51
52
53 assertTrue(isElementPresent("//select[@name=\"newCollectionLines['document.adHocRoutePersons'].actionRequested\"]"));
54 assertTrue(isElementPresent("//input[@name=\"newCollectionLines['document.adHocRoutePersons'].name\" and @type=\"text\"]"));
55
56 assertTrue(isElementPresent("//select[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].actionRequested\"]"));
57 assertTrue(isElementPresent("//input[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].recipientNamespaceCode\" and @type='text']"));
58 assertTrue(isElementPresent("//input[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].recipientName\" and @type='text']"));
59
60 }
61 }