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.reference;
|
10
|
|
11
|
import java.net.MalformedURLException;
|
12
|
|
13
|
import org.junit.Before;
|
14
|
import org.junit.Test;
|
15
|
|
16
|
import eu.etaxonomy.dataportal.DataPortalSite;
|
17
|
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
|
18
|
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
|
19
|
import eu.etaxonomy.dataportal.pages.GenericPortalPage;
|
20
|
|
21
|
/**
|
22
|
*/
|
23
|
|
24
|
@DataPortalContexts( {
|
25
|
DataPortalSite.reference,
|
26
|
DataPortalSite.cichorieae,
|
27
|
DataPortalSite.palmae,
|
28
|
DataPortalSite.cyprus
|
29
|
})
|
30
|
public class AdvancedSearchFormTest extends CdmDataPortalTestBase{
|
31
|
|
32
|
|
33
|
@Before
|
34
|
public void setUp() throws Exception {
|
35
|
driver.get(getContext().getSiteUri().toString());
|
36
|
}
|
37
|
|
38
|
@Test
|
39
|
public void testTaxonSearchForm() throws MalformedURLException {
|
40
|
|
41
|
GenericPortalPage p = new GenericPortalPage(driver, getContext(), "search");
|
42
|
assertTrue(driver.getTitle().startsWith("Advanced search | "));
|
43
|
|
44
|
}
|
45
|
|
46
|
@Test
|
47
|
public void testFactualDataSearchForm() throws MalformedURLException {
|
48
|
|
49
|
GenericPortalPage p = new GenericPortalPage(driver, getContext(), "search/taxon_by_description");
|
50
|
assertTrue(driver.getTitle().startsWith("Search by factual data | "));
|
51
|
|
52
|
}
|
53
|
|
54
|
}
|