1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2009 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
package eu.etaxonomy.dataportal.selenium.tests;
|
11
|
|
12
|
import org.junit.Assert;
|
13
|
import org.junit.Test;
|
14
|
import org.openqa.selenium.By;
|
15
|
import org.openqa.selenium.RenderedWebElement;
|
16
|
import org.openqa.selenium.WebElement;
|
17
|
|
18
|
import eu.etaxonomy.dataportal.DataPortalContext;
|
19
|
import eu.etaxonomy.dataportal.DataPortalContexts;
|
20
|
import eu.etaxonomy.dataportal.selenium.CdmDataPortalTestBase;
|
21
|
|
22
|
/**
|
23
|
* @author a.kohlbecker
|
24
|
*
|
25
|
*/
|
26
|
|
27
|
@DataPortalContexts( { DataPortalContext.cyprus })
|
28
|
public class CyprusSearchTest extends CdmDataPortalTestBase{
|
29
|
|
30
|
/**
|
31
|
* see http://dev.e-taxonomy.eu/trac/ticket/2350
|
32
|
*/
|
33
|
@Test
|
34
|
public void searchResultsWithoutAnnotationFootnotes(){
|
35
|
driver.get(getBaseUrl() + "?query=Genis*&search[tree]=0c2b5d25-7b15-4401-8b51-dd4be0ee5cab&q=cdm_dataportal%2Fsearch%2Ftaxon&search[pageSize]=25&search[pageNumber]=0&search[doTaxa]=1&search[doSynonyms]=1&search[doTaxaByCommonNames]=0");
|
36
|
RenderedWebElement element = (RenderedWebElement)driver.findElement(By.xpath("/html/body/div/div/div[2]/div[2]/div/div/div/ul/li/span[@class='footnote-key footnote-key-1 member-of-footnotes--annotations']"));
|
37
|
Assert.assertNull("result set entries must not have footnote keys", element);
|
38
|
}
|
39
|
|
40
|
}
|