1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.krad.reference;
17
18 import org.junit.Test;
19 import org.kuali.rice.testtools.selenium.AutomatedFunctionalTestUtils;
20 import org.kuali.rice.testtools.selenium.WebDriverLegacyITBase;
21 import org.kuali.rice.testtools.selenium.WebDriverUtils;
22
23
24
25
26
27
28 public class ExternalIdentifierTypeAft extends WebDriverLegacyITBase {
29
30
31
32
33
34
35
36 public static final String BOOKMARK_URL = AutomatedFunctionalTestUtils.PORTAL + "?channelTitle=External%20Identifier%20Type&channelUrl="
37 + WebDriverUtils.getBaseUrlString() + AutomatedFunctionalTestUtils.KRAD_LOOKUP_METHOD +
38 "org.kuali.rice.kim.impl.identity.external.EntityExternalIdentifierTypeBo&returnLocation="
39 + AutomatedFunctionalTestUtils.PORTAL_URL + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
40
41 @Override
42 protected String getBookmarkUrl() {
43 return BOOKMARK_URL;
44 }
45
46 @Override
47 protected void navigate() throws InterruptedException {
48 waitAndClickKRAD();
49 waitAndClickByLinkText("External Identifier Type");
50 }
51
52
53 protected void testExternalIdentifierType() throws Exception {
54 selectFrameIframePortlet();
55 waitAndClickSearchByText();
56 waitForProgressLoading();
57 assertTextPresent(new String[][]{{"HR"},{"LICENSE"}});
58 waitAndTypeByName("lookupCriteria[code]","LICENSE");
59 waitAndClickSearchByText();
60 waitForProgressLoading();
61 waitForTextNotPresent("HR");
62 assertTextPresent("LICENSE");
63 }
64
65 @Test
66 public void testExternalIdentifierTypeBookmark() throws Exception {
67 testExternalIdentifierType();
68 passed();
69 }
70
71 @Test
72 public void testExternalIdentifierTypeNav() throws Exception {
73 testExternalIdentifierType();
74 passed();
75 }
76 }