Project

General

Profile

Revision c88416e1

IDc88416e1a80357d5df71cccbbaedb1aaec2f9a63
Parent bd131507
Child d8de8d4d

Added by Andreas Kohlbecker 9 months ago

ref #7766 completing test case

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;
17 16
import org.junit.Test;
18 17
import org.openqa.selenium.WebElement;
19 18

  
......
58 57
     *
59 58
     * https://dev.e-taxonomy.eu/redmine/issues/5647
60 59
     * https://dev.e-taxonomy.eu/redmine/issues/7658
60
     * https://dev.e-taxonomy.eu/redmine/issues/7766
61
     *
62
     * The expected sort order is: pro parte/partial synonyms,
63
     * then invalid designations,
64
     * then MANs
65
     * followed (or including?) pro parte/partial MAN
66
     * and finally concept relationships.
67
     * (see https://dev.e-taxonomy.eu/redmine/issues/7766)
61 68
     *
62 69
     * NOTE: Species solaris has no authorship!!
63 70
     */
......
89 96

  
90 97
    /**
91 98
     * Test to reproduce issue https://dev.e-taxonomy.eu/redmine/issues/7766
92
     *
93
     * TODO merge with  tesIssue5647 () once fixed
94
     *
95 99
     */
96 100
    @Test
97
    @Ignore
98 101
    public void tesIssue7766() throws MalformedURLException {
99 102

  
100 103
        TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), miconia_cubacinerea_Uuid);
101 104

  
102
        assertEquals("≜⊃\nTrichocentrum undulatum (Sw.) Ackerman & M. W. Chase sec. My Classification3", p.getTaxonRelationships(1).getText());
103
        assertEquals("∅ Achilllea santolina Lag. sec. Testor 2018+4", p.getTaxonRelationships(1).getText());
105
        assertEquals("≜⊃\nTrichocentrum undulatum (Sw.) Ackerman & M. W. Chase sec. Kohlbecker 2016-2018", p.getTaxonRelationships(1).getText());
106
        assertEquals("∅\nAchilllea santolina Lag. sec. Testor 2018+, rel. sec. A&S: 35", p.getTaxonRelationships(2).getText());
104 107

  
105 108

  
106 109
        List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships());
107
        assertEquals(4, footnotes.size());
110
        assertEquals(2, footnotes.size());
108 111
        assertEquals("1. A&S, Plantas vasculares de Oz", footnotes.get(0).getText());
109 112
        assertEquals("2. Lem, New Species in the solar system", footnotes.get(1).getText());
110
        assertEquals("3. Kohlbecker, .....TODO .... 2016-2018", footnotes.get(0).getText());
111
        assertEquals("4. Testor ... TODO ... 2018+", footnotes.get(1).getText());
112

  
113 113
    }
114 114

  
115 115
    /**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)