@@ -0,0 +1,2568 @@
+/*%0A * Copyright 2008-2013 Microarray Informatics Team, EMBL-European Bioinformatics Institute%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *%0A *%0A * For further details of the Gene Expression Atlas project, including source code,%0A * downloads and documentation, please see:%0A *%0A * http://gxa.github.com/gxa%0A */%0A%0Apackage uk.ac.ebi.atlas.bioentity;%0A%0Aimport org.junit.Test;%0Aimport uk.ac.ebi.atlas.acceptance.selenium.fixture.SinglePageSeleniumFixture;%0Aimport uk.ac.ebi.atlas.acceptance.selenium.pages.BioEntityPage;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.is;%0A%0Apublic class GenePageControllerBaselineResultsPaneSIT extends SinglePageSeleniumFixture %7B%0A%0A    @Override%0A    protected void getStartingPage() %7B%0A    %7D%0A%0A    @Test%0A    public void whenNoBaselineResultsAndDiffResultsThenTheDifferentialPaneIsOpen() %7B%0A        BioEntityPage subject = new BioEntityPage(driver, %22ENSMUSG00000070683%22, %22genes%22);%0A        subject.get();%0A        assertThat(subject.getBaselinePaneHeaderResultsMessage(), is(%22No results%22));%0A        assertThat(subject.getDiffPaneHeaderResultsMessage(), is(%221 result%22));%0A        assertThat(subject.isDifferentialPaneExpanded(), is(true));%0A    %7D%0A%0A    @Test%0A    public void whenBaselineResultsThenBaselinePaneIsOpen() %7B%0A        BioEntityPage subject = new BioEntityPage(driver, %22ENSMUSG00000064356%22, %22genes%22);%0A        subject.get();%0A        assertThat(subject.getBaselinePaneHeaderResultsMessage(), is(%22Results in tissues%22));%0A        assertThat(subject.getDiffPaneHeaderResultsMessage(), is(%22No results%22));%0A        assertThat(subject.isBaselinePaneExpanded(), is(true));%0A    %7D%0A%0A    @Test%0A    public void whenNoBaselineOrDiffResultsThenInfoPaneIsOpen() %7B%0A        BioEntityPage subject = new BioEntityPage(driver, %22ENSMUSG00000096985%22, %22genes%22);%0A        subject.get();%0A        assertThat(subject.getBaselinePaneHeaderResultsMessage(), is(%22No results%22));%0A        assertThat(subject.getDiffPaneHeaderResultsMessage(), is(%22No results%22));%0A        assertThat(subject.isInfoCardExpanded(), is(true));%0A    %7D%0A%0A%0A%7D%0A

add test for story Default panel opening on search results page and gene page