Project

General

Profile

« Previous | Next » 

Revision e5926729

Added by Andreas Kohlbecker over 5 years ago

ref #7766 creating testcase - currently ignored

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

  
......
78 79
        // Test also invalid designation which is rendered with the misapplied names
79 80
        assertEquals("–\nOssaea maculata sec. Lem2, rel. sec. A&S1", p.getMisappliedName(6).getText());
80 81

  
81

  
82
        assertEquals("≜⊃\nTrichocentrum undulatum (Sw.) Ackerman & M. W. Chase sec. My Classification3", p.getTaxonRelationships(1).getText());
83
        assertEquals("∅ Achilllea santolina Lag. sec. Testor 2018+4", p.getTaxonRelationships(1).getText());
82 84

  
83 85

  
84 86
        List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships());
85
        assertEquals(2, footnotes.size());
87
        assertEquals(4, footnotes.size());
86 88
        assertEquals("1. A&S, Plantas vasculares de Oz", footnotes.get(0).getText());
87 89
        assertEquals("2. Lem, New Species in the solar system", footnotes.get(1).getText());
90
        assertEquals("3. Kohlbecker, .....TODO .... 2016-2018", footnotes.get(0).getText());
91
        assertEquals("4. Testor ... TODO ... 2018+", footnotes.get(1).getText());
88 92
        // "Species solaris" must not be in the footnotes as it has the same title as the short citation
89 93

  
90 94
    }
91 95

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

  
106
        TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), miconia_cubacinerea_Uuid);
107

  
108
        assertEquals("≜⊃\nTrichocentrum undulatum (Sw.) Ackerman & M. W. Chase sec. My Classification3", p.getTaxonRelationships(1).getText());
109
        assertEquals("∅ Achilllea santolina Lag. sec. Testor 2018+4", p.getTaxonRelationships(1).getText());
110

  
111

  
112
        List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships());
113
        assertEquals(4, footnotes.size());
114
        assertEquals("1. A&S, Plantas vasculares de Oz", footnotes.get(0).getText());
115
        assertEquals("2. Lem, New Species in the solar system", footnotes.get(1).getText());
116
        assertEquals("3. Kohlbecker, .....TODO .... 2016-2018", footnotes.get(0).getText());
117
        assertEquals("4. Testor ... TODO ... 2018+", footnotes.get(1).getText());
118

  
119
    }
120

  
92 121

  
93 122
    /**
94 123
     * https://dev.e-taxonomy.eu/redmine/issues/5492

Also available in: Unified diff