1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.admin.test;
17
18 import edu.samplu.common.AdminMenuBlanketAppLegacyITBase;
19 import edu.samplu.common.AdminMenuLegacyITBase;
20 import edu.samplu.common.ITUtil;
21 import org.apache.commons.lang.RandomStringUtils;
22
23
24
25
26
27
28 public class IdentityPersonBlanketAppLegacyIT extends AdminMenuBlanketAppLegacyITBase {
29 @Override
30 protected String getLinkLocator() {
31 return "Person";
32 }
33
34 @Override
35 public String blanketApprove() throws Exception {
36 String docId = waitForDocId();
37 waitAndTypeByXpath("//input[@id='document.documentHeader.documentDescription']", "Validation Test Person");
38 assertBlanketApproveButtonsPresent();
39 waitAndTypeByXpath("//input[@id='document.principalName']", "principal "+ RandomStringUtils.randomAlphabetic(3).toLowerCase());
40 selectByName("newAffln.affiliationTypeCode", "Affiliate");
41 selectByName("newAffln.campusCode", "BX - BLGTN OFF CAMPUS");
42 selectByName("newAffln.campusCode", "BL - BLOOMINGTON");
43 assertElementPresentByName("newAffln.dflt");
44 waitAndClickByName("newAffln.dflt");
45 waitAndClickByName("methodToCall.addAffln.anchor");
46 waitAndClickByName("methodToCall.toggleTab.tabContact");
47 selectByName("newName.namePrefix", "Mr");
48 waitAndTypeByName("newName.firstName", "First");
49 waitAndTypeByName("newName.lastName", "Last");
50 selectByName("newName.nameSuffix", "Mr");
51 waitAndClickByName("newName.dflt");
52 waitAndClickByName("methodToCall.addName.anchor");
53 waitForPageToLoad();
54 return docId;
55 }
56 }
57