Project

General

Profile

« Previous | Next » 

Revision 5cfd066c

Added by Andreas Kohlbecker over 5 years ago

ref #7658 test case for Nepenthes abalata

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/MisappliedNamesTest.java
13 13
import java.util.UUID;
14 14

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

  
......
28 29
 * Issues to be covered by this TestClass:
29 30
 *
30 31
 * #5676
31
 * #5647 - OK
32
 * #5492 - OK
32
 * #5647
33
 * #5492
34
 * #7658 + #6682
33 35
 *
34 36
 * @author a.kohlbecker
35 37
 *
......
40 42

  
41 43
    static final UUID miconia_cubacinerea_Uuid = UUID.fromString("c6716cee-2039-4ba8-a239-4b1b353f9c84");
42 44

  
43

  
44 45
    static final UUID trichocentrum_undulatum_Uuid = UUID.fromString("7e86b2a4-ba71-4494-b544-ae5656e02ed2");
45 46

  
47
    static final UUID nepenthes_abalata_Uuid = UUID.fromString("9b588d8a-c4fa-430a-b9c7-026bf715ecf6");
48

  
49

  
50

  
46 51
    @Before
47 52
    public void setUp() throws Exception {
48 53
        driver.get(getContext().getBaseUri().toString());
......
93 98
        assertEquals("1. Greuter, W. & Rankin Rodríguez, R, Plantas vasculares de Cuba: inventario preliminar. Tercera edición, actualizada. Vascular plants of Cuba: a preliminary checklist. Third updated edition.", footnotes.get(0).getText());
94 99
    }
95 100

  
101
    /**
102
     * https://dev.e-taxonomy.eu/redmine/issues/7658
103
     * https://dev.e-taxonomy.eu/redmine/issues/6682
104
     */
105
    @Test
106
    @Ignore
107
    public void testIssue7658() throws MalformedURLException {
108

  
109

  
110
        TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), nepenthes_abalata_Uuid);
96 111

  
112
        WebElement misappliedName1 = p.getMisappliedName(1);
113
        assertNotNull(misappliedName1);
114
        assertEquals("–\n\"Nepenthes alata\" pro parte, sensu Cheek, Jebb 20011, non Blanco, err. sec. Cheek, Jebb 2013", misappliedName1.getText());
115

  
116
        WebElement misappliedName2 = p.getMisappliedName(2);
117
        assertNotNull(misappliedName2);
118
        assertEquals("–\n\"Nepenthes blancoi\" pro parte, sensu Macfarlane 19082, non Blume, err. sec. Cheek, Jebb 2013", misappliedName2.getText());
119

  
120

  
121
        List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships());
122
        assertEquals(1, footnotes.size());
123
   }
97 124

  
98 125
}

Also available in: Unified diff