1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.samplu.mainmenu.test;
17
18 import edu.samplu.common.MainMenuLookupLegacyITBase;
19 import org.junit.Ignore;
20 import org.junit.Test;
21
22 import java.util.Calendar;
23
24
25
26
27
28
29 public class CreateNewAgendaLegacyIT extends MainMenuLookupLegacyITBase {
30 @Override
31 protected String getLinkLocator() {
32 return "Create New Agenda";
33 }
34
35 @Test
36 public void testCreateNewAgenda() throws Exception {
37 gotoMenuLinkLocator();
38 selectByName("document.newMaintainableObject.dataObject.namespace", "Kuali Rules Test");
39 String agendaName = "Agenda Date :"+ Calendar.getInstance().getTime().toString();
40 waitAndTypeByName("document.newMaintainableObject.dataObject.agenda.name", "Agenda " + agendaName);
41 waitAndTypeByName("document.newMaintainableObject.dataObject.contextName", "Context1");
42 fireEvent("document.newMaintainableObject.dataObject.contextName", "blur");
43 fireEvent("document.newMaintainableObject.dataObject.contextName", "focus");
44 waitForElementPresentByName("document.newMaintainableObject.dataObject.agenda.typeId");
45 selectByName("document.newMaintainableObject.dataObject.agenda.typeId", "Campus Agenda");
46 waitForElementPresentByName("document.newMaintainableObject.dataObject.customAttributesMap[Campus]");
47 waitAndTypeByName("document.newMaintainableObject.dataObject.customAttributesMap[Campus]", "BL");
48 waitAndClickByXpath("//div[2]/button");
49 waitForPageToLoad();
50 waitAndClickByXpath("//div[2]/button[3]");
51 waitForPageToLoad();
52 selectTopFrame();
53 waitAndClickByXpath("(//input[@name='imageField'])[2]");
54 passed();
55 }
56
57
58
59
60
61
62 @Override
63 public void lookupAssertions() {
64
65
66 }
67
68 @Ignore
69 @Test
70 @Override
71 public void testLookUp() throws Exception {}
72
73 }