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_testBasicSearchFieldsAndExecuteSearchWithHiddenCriteria extends DocumentSearchURLParametersITBase {
14 @Test
15 public void testBasicSearchFieldsAndExecuteSearchWithHiddenCriteria() throws InterruptedException {
16
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
26 assertTrue(driver.getPageSource().contains("No values match this search"));
27
28
29 }
30 }