Project

General

Profile

« Previous | Next » 

Revision 0a9f8e05

Added by Andreas Kohlbecker almost 3 years ago

ref #9588 fixing wrong expectations in test

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimenTableViewTest.java
131 131
        String detailsText = cells.get(1).getText();
132 132
        String[] detailsLines = StringUtils.split(detailsText, "\n");
133 133
        assertEquals(1, detailsLines.length);
134
        assertEquals("Citation: Germany, Berlin, 2 Apr 1835. (BHUPM 671)", detailsLines[0]);
134
        assertEquals("Citation: Germany, Berlin, 2 Apr 1835.", detailsLines[0]);
135

  
135 136

  
136 137
        // summary row
137 138
        ++rowId;
......
141 142
        assertEquals("2016-03-28", cells.get(2).getText());
142 143
        assertEquals("Ehrenberg, C.G. D047", cells.get(3).getText());
143 144
         // Only two preserved specimes exepectet in the collection statistics"
144
        assertEquals("M, CEDiT", cells.get(4).getText());
145
        assertEquals("CEDiT, M", cells.get(4).getText());
145 146
        assertTrue(cells.get(5).findElement(By.tagName("img")).getAttribute("src")
146 147
                .endsWith(STEP_DONE_ICON));
147 148
        assertTrue(cells.get(6).findElement(By.tagName("img")).getAttribute("src")
......
162 163
        BaseElement detailsCell = new BaseElement(cells.get(1));
163 164
        List<LinkElement> linksInDetails = detailsCell.getLinksInElement();
164 165
        assertEquals(9, detailsLines.length);
165
        assertEquals("Citation: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047. (CEDiT 2017E68, B BDNA 99999, B IMG 99999, M M-0289351, XKCD MASKS 2X)", detailsLines[0]);
166
        assertEquals("Citation: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047. (CEDiT 2017E68, M M-0289351)", detailsLines[0]);
166 167

  
167 168
        assertEquals("Specimen summary: CEDiT (2017E68)", detailsLines[1]);
168 169
        assertEquals("CEDiT (2017E68)" ,linksInDetails.get(0).getText());

Also available in: Unified diff