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.KradMenuLegacyITBase;
19 import org.junit.Test;
20
21
22
23
24 public class MaintenanceAdHocRecipientsLegacyIT extends KradMenuLegacyITBase {
25
26 @Override
27 protected String getLinkLocator() {
28 return "Travel Account Maintenance (New)";
29 }
30
31 @Test
32
33
34
35 public void testVerifyAdHocRecipientsLegacy() throws Exception {
36 gotoMenuLinkLocator();
37 waitAndClickByLinkText("Fiscal Officer Accounts");
38
39 assertElementPresentByXpath("//select[@name=\"newCollectionLines['document.adHocRoutePersons'].actionRequested\"]");
40 assertElementPresentByXpath("//input[@name=\"newCollectionLines['document.adHocRoutePersons'].name\" and @type=\"text\"]");
41
42 assertElementPresentByXpath("//select[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].actionRequested\"]");
43 assertElementPresentByXpath("//input[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].recipientNamespaceCode\" and @type='text']");
44 assertElementPresentByXpath("//input[@name=\"newCollectionLines['document.adHocRouteWorkgroups'].recipientName\" and @type='text']");
45 passed();
46 }
47 }