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
12
13 public class DocumentSearchURLParametersIT_testAdvancedSearchFieldsAndExecuteSearchWithHiddenCriteria extends DocumentSearchURLParametersITBase {
14 @Test
15 public void testAdvancedSearchFieldsAndExecuteSearchWithHiddenCriteria() throws InterruptedException {
16
17 Map<String, String> expected = new HashMap<String, String>(BASIC_FIELDS);
18 expected.putAll(ADVANCED_FIELDS);
19
20 Map<String, String> values = new HashMap<String, String>(expected);
21 values.put("methodToCall", "search");
22 values.put("searchCriteriaEnabled", "NO");
23 driver.get(getDocSearchURL(values));
24
25 assertInputPresence(expected, false);
26
27
28 assertTrue(driver.getPageSource().contains("No values match this search"));
29
30
31 }
32 }