001package edu.samplu.admin.test;
002
003import org.junit.Test;
004import org.openqa.selenium.By;
005
006import static com.thoughtworks.selenium.SeleneseTestBase.assertFalse;
007import static com.thoughtworks.selenium.SeleneseTestBase.assertTrue;
008
009/**
010 * @author Kuali Rice Team (rice.collab@kuali.org)
011 */
012public 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}