1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.main;
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 AgendaEditorEditPropositionAft extends WebDriverLegacyITBase {
29
30 public static final String BOOKMARK_URL =
31 AutomatedFunctionalTestUtils.PORTAL
32 + "?channelTitle=Agenda%20Lookup&channelUrl="
33 + WebDriverUtils.getBaseUrlString()
34 + AutomatedFunctionalTestUtils.KRAD_LOOKUP_METHOD
35 + "org.kuali.rice.krms.impl.repository.AgendaBo"
36 + AutomatedFunctionalTestUtils.SHOW_MAINTENANCE_LINKS
37 + "&returnLocation="
38 + AutomatedFunctionalTestUtils.PORTAL_URL
39 + AutomatedFunctionalTestUtils.HIDE_RETURN_LINK;
40
41 @Override
42 protected String getBookmarkUrl() {
43 return BOOKMARK_URL;
44 }
45
46 @Override
47 protected void navigate() throws Exception {
48 waitAndClickByLinkText(AGENDA_LOOKUP_LINK_TEXT);
49 waitForPageToLoad();
50 }
51
52
53
54
55
56
57 protected void testNoEditSubmit() throws Exception {
58 selectFrameIframePortlet();
59
60
61 waitAndTypeByName("lookupCriteria[id]", "T1001");
62 waitAndClickButtonByExactText("Search");
63 waitAndClickByLinkText("edit");
64
65
66 submitSuccessfully();
67 waitAndClickButtonByText("Reload");
68 waitForTextPresent("FINAL");
69 }
70
71 @Test
72 public void testAgendaEditorEditPropositionNav() throws Exception {
73 testNoEditSubmit();
74 passed();
75 }
76
77 }