Project

General

Profile

Download (1.66 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
 * Copyright (C) 2009 EDIT
3
 * European Distributed Institute of Taxonomy
4
 * http://www.e-taxonomy.eu
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * See LICENSE.TXT at the top of this package for the full license terms.
8
 */
9
package eu.etaxonomy.dataportal.selenium.tests.cyprus;
10

    
11
import static org.junit.Assert.assertNull;
12

    
13
import org.junit.Assert;
14
import org.junit.Before;
15
import org.junit.Ignore;
16
import org.junit.Test;
17
import org.openqa.selenium.By;
18
import org.openqa.selenium.WebElement;
19

    
20
import eu.etaxonomy.dataportal.DataPortalContext;
21
import eu.etaxonomy.dataportal.elements.TaxonListElement;
22
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
23
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
24
import eu.etaxonomy.dataportal.pages.GenericPortalPage;
25
import eu.etaxonomy.dataportal.pages.TaxonSearchResultPage;
26

    
27
/**
28
 * @author a.kohlbecker
29
 *
30
 */
31

    
32
@DataPortalContexts( { DataPortalContext.cyprus })
33
public class CyprusSearchTest extends CdmDataPortalTestBase{
34

    
35
	private GenericPortalPage homePage;
36

    
37
	@Before
38
	public void setUp() throws Exception {
39

    
40
		driver.get(getContext().getBaseUri().toString());
41
		homePage = new GenericPortalPage(driver, getContext());
42

    
43
	}
44

    
45
	/**
46
	 * see http://dev.e-taxonomy.eu/trac/ticket/2350
47
	 * @throws Exception
48
	 */
49
	@Test
50
	public void searchResultsWithoutAnnotationFootnotes() throws Exception{
51

    
52
		TaxonSearchResultPage searchResultPage = homePage.submitQuery("Genis*");
53

    
54
		for (TaxonListElement item : searchResultPage.getResultItems()){
55
			 assertNull("result set entries must not have footnote keys", item.getElement().findElements(By.className("footnote-key")));
56
		}
57

    
58
	}
59

    
60
}
(4-4/6)