001    package edu.samplu.admin.test;
002    
003    import org.junit.Test;
004    import org.openqa.selenium.By;
005    
006    import static com.thoughtworks.selenium.SeleneseTestBase.assertFalse;
007    import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue;
008    
009    /**
010     * @author Kuali Rice Team (rice.collab@kuali.org)
011     */
012    public class DocumentSearchURLParametersIT_testHeaderBarDisabled extends DocumentSearchURLParametersITBase {
013        @Test
014        public void testHeaderBarDisabled() throws InterruptedException{
015            driver.get(getDocSearchURL("headerBarEnabled=false"));
016            assertTrue(driver.findElements(By.id("headerarea-small")).isEmpty());
017            assertInputPresence(CORE_FIELDS, true);
018            driver.get(getDocSearchURL("headerBarEnabled=true"));
019            assertFalse(driver.findElements(By.id("headerarea-small")).isEmpty());
020            assertInputPresence(CORE_FIELDS, true);
021        }
022    }