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.MainMenuLookupITBase;
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 CreateNewAgendaIT extends MainMenuLookupITBase {
30 @Override
31 protected String getLinkLocator() {
32 return "link=Create New Agenda";
33 }
34
35 @Test
36 public void testCreateNewAgenda() throws Exception {
37 gotoMenuLinkLocator();
38 select("name=document.newMaintainableObject.dataObject.namespace", "label=Kuali Rules Test");
39 String agendaName = "Agenda Date :"+ Calendar.getInstance().getTime().toString();
40 waitAndType("name=document.newMaintainableObject.dataObject.agenda.name", "Agenda " + agendaName);
41 waitAndType("name=document.newMaintainableObject.dataObject.contextName", "Context1");
42 fireEvent("name=document.newMaintainableObject.dataObject.contextName", "blur");
43 fireEvent("name=document.newMaintainableObject.dataObject.contextName", "focus");
44 waitForElementPresent("name=document.newMaintainableObject.dataObject.agenda.typeId",
45 "https://jira.kuali.org/browse/KULRICE-7924 : KRMS Agenda type select option not rendered w/o using Context lookup");
46 select("name=document.newMaintainableObject.dataObject.agenda.typeId", "label=Campus Agenda");
47 waitForElementPresent("name=document.newMaintainableObject.dataObject.customAttributesMap[Campus]");
48 waitAndType("name=document.newMaintainableObject.dataObject.customAttributesMap[Campus]", "BL");
49 waitAndClick("//div[2]/button");
50 waitForPageToLoad();
51
52
53
54 waitAndClick("//div[2]/button[3]");
55 waitForPageToLoad();
56 selectWindow("null");
57 waitAndClick("xpath=(//input[@name='imageField'])[2]");
58 }
59
60 @Ignore
61 @Test
62 public void testLookUp() throws Exception {}
63
64 @Override
65 public void lookupAssertions() {
66
67 }
68 }