@@ -0,0 +1,2745 @@
+package com.autonomy.abc.search;%0A%0Aimport com.autonomy.abc.config.HostedTestBase;%0Aimport com.autonomy.abc.config.TestConfig;%0Aimport com.autonomy.abc.framework.KnownBug;%0Aimport com.autonomy.abc.selenium.indexes.IndexesPage;%0Aimport com.autonomy.abc.selenium.menu.NavBarTabId;%0Aimport com.autonomy.abc.selenium.menu.SideNavBar;%0Aimport com.autonomy.abc.selenium.menu.TopNavBar;%0Aimport com.autonomy.abc.selenium.promotions.PromotionsPage;%0Aimport com.autonomy.abc.selenium.search.SearchPage;%0Aimport com.hp.autonomy.frontend.selenium.util.AppPage;%0Aimport org.hamcrest.Description;%0Aimport org.hamcrest.Matcher;%0Aimport org.hamcrest.TypeSafeMatcher;%0Aimport org.junit.Test;%0Aimport org.openqa.selenium.By;%0A%0Aimport static com.autonomy.abc.framework.ABCAssert.verifyThat;%0Aimport static org.hamcrest.Matchers.empty;%0Aimport static org.hamcrest.Matchers.not;%0Aimport static org.openqa.selenium.lift.Matchers.displayed;%0A%0Apublic class SearchSplashPageITCase extends HostedTestBase %7B%0A    private TopNavBar topNavBar;%0A    private SideNavBar sideNavBar;%0A%0A    public SearchSplashPageITCase(TestConfig config) %7B%0A        super(config);%0A    %7D%0A%0A    @Test%0A    @KnownBug(%22CSA-2040%22)%0A    public void testBigSearch() %7B%0A        setNavBars();%0A        goToSearchVia(PromotionsPage.class);%0A        verifyBigSearch();%0A%0A        getDriver().navigate().refresh();%0A        setNavBars();%0A        verifyBigSearch();%0A%0A        goToSearchVia(IndexesPage.class);%0A        verifyBigSearch();%0A%0A        topNavBar.search(%22hello%22);%0A        SearchPage searchPage = getElementFactory().getSearchPage();%0A        verifyThat(searchPage.getSearchResults(), not(empty()));%0A        verifyThat(topNavBar, not(searchBoxIsDown()));%0A    %7D%0A%0A    private void goToSearchVia(Class%3C? extends AppPage%3E otherPage) %7B%0A        getApplication().switchTo(otherPage);%0A        setNavBars();%0A%09%09/* SearchSplashPage is-not-a SearchPage */%0A        sideNavBar.switchPage(NavBarTabId.SEARCH);%0A        setNavBars();%0A    %7D%0A%0A    private void setNavBars() %7B%0A        topNavBar = getElementFactory().getTopNavBar();%0A        sideNavBar = getElementFactory().getSideNavBar();%0A    %7D%0A%0A    private void verifyBigSearch() %7B%0A        verifyThat(topNavBar.searchBox(), displayed());%0A        verifyThat(topNavBar, searchBoxIsDown());%0A    %7D%0A%0A    private Matcher%3C? super TopNavBar%3E searchBoxIsDown() %7B%0A        return new TypeSafeMatcher%3CTopNavBar%3E() %7B%0A            @Override%0A            protected boolean matchesSafely(TopNavBar topNavBar) %7B%0A                return topNavBar.findElements(By.className(%22animated-down-search%22)).size() %3E 0;%0A            %7D%0A%0A            @Override%0A            public void describeTo(Description description) %7B%0A                description.appendText(%22search box in the middle of the page%22);%0A            %7D%0A        %7D;%0A    %7D%0A%0A%7D%0A

Add test that the search box appears correctly, to cover CSA-2040