Project

General

Profile

Revision 940bbcf2

ID940bbcf2e2ecadc10dd40c5e264740dd6d6d5390
Parent 90425089
Child f37da5d1

Added by Andreas Kohlbecker about 1 year ago

ref #3616 implementing tests for DescriptionElementBase.timeperiod

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/DescriptionElementsTest.java
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
import java.util.UUID;
13

  
14
import org.junit.Before;
15
import org.junit.Ignore;
16
import org.junit.Test;
17

  
18
import eu.etaxonomy.dataportal.DataPortalSite;
19
import eu.etaxonomy.dataportal.elements.FeatureBlock;
20
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
21
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
22
import eu.etaxonomy.dataportal.pages.TaxonProfilePage;
23

  
24
/**
25
 * Issues to be covered by this TestClass:
26
 *
27
 * #3616
28
 *
29
 * @author a.kohlbecker
30
 *
31
 */
32

  
33
@DataPortalContexts( { DataPortalSite.reference })
34
public class DescriptionElementsTest extends CdmDataPortalTestBase{
35

  
36
    static final UUID achilllea_santolina_uuid = UUID.fromString("c246856f-c03e-4cb7-ac92-d9b2864084cd");
37

  
38

  
39
    @Before
40
    public void setUp() throws Exception {
41
        driver.get(getContext().getBaseUri().toString());
42
    }
43

  
44
    /**
45
     * Test to reproduce issue https://dev.e-taxonomy.eu/redmine/issues/3616
46
     *
47
     */
48
    @Test
49
    @Ignore
50
    public void tesIssue3616() throws MalformedURLException {
51

  
52

  
53
        TaxonProfilePage p = new TaxonProfilePage(driver, getContext(), achilllea_santolina_uuid);
54

  
55
        FeatureBlock fb = p.getFeatureBlockAt(0, "biology-and-ecology", "div", "span");
56
        assertNotNull(fb);
57
        assertEquals(2, fb.getFeatureBlockElements().size());
58
        assertEquals("Flowers with white blossoms on Testisland A. 00-05-00 to 00-06-00 (Lem, New Species in the solar system: p.99)", fb.getFeatureBlockElements().get(0).getText());
59
        assertEquals("Flowers with white blossoms on Testisland B. Mai to June (Lem, New Species in the solar system: p.99)", fb.getFeatureBlockElements().get(1).getText());
60

  
61
    }
62

  
63
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)