View Javadoc
1   package edu.samplu.admin.test;
2   
3   import org.junit.Test;
4   import org.openqa.selenium.By;
5   
6   import static com.thoughtworks.selenium.SeleneseTestBase.assertFalse;
7   import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue;
8   
9   /**
10   * @author Kuali Rice Team (rice.collab@kuali.org)
11   */
12  public class DocumentSearchURLParametersIT_testHeaderBarDisabled extends DocumentSearchURLParametersITBase {
13      @Test
14      public void testHeaderBarDisabled() throws InterruptedException{
15          driver.get(getDocSearchURL("headerBarEnabled=false"));
16          assertTrue(driver.findElements(By.id("headerarea-small")).isEmpty());
17          assertInputPresence(CORE_FIELDS, true);
18          driver.get(getDocSearchURL("headerBarEnabled=true"));
19          assertFalse(driver.findElements(By.id("headerarea-small")).isEmpty());
20          assertInputPresence(CORE_FIELDS, true);
21      }
22  }