View Javadoc
1   package edu.samplu.admin.test;
2   
3   import org.junit.Test;
4   
5   import java.util.HashMap;
6   import java.util.Map;
7   
8   import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue;
9   
10  /**
11   * @author Kuali Rice Team (rice.collab@kuali.org)
12   */
13  public class DocumentSearchURLParametersIT_testBasicSearchFieldsAndExecuteSearchWithHiddenCriteria extends DocumentSearchURLParametersITBase {
14      @Test
15      public void testBasicSearchFieldsAndExecuteSearchWithHiddenCriteria() throws InterruptedException {
16          // criteria.initiator=delyea&criteria.docTypeFullName=" + documentTypeName +
17          Map<String, String> fields = new HashMap<String, String>();
18          fields.putAll(BASIC_FIELDS);
19          fields.put("methodToCall", "search");
20          fields.put("searchCriteriaEnabled", "NO");
21          driver.get(getDocSearchURL(fields));
22  
23          assertInputPresence(BASIC_FIELDS, false);
24  
25          // verify that it attempted the search
26          assertTrue(driver.getPageSource().contains("No values match this search"));
27  
28          // NOTE: toggling modes re-enables the search criteria
29      }
30  }