Project

General

Profile

Revision 73302d89

ID73302d89f3cf6d7dae31e03efe877613c31d9935
Parent 26f042e4
Child 6b19a210

Added by Andreas Kohlbecker 4 months ago

ref #8850 adapting tests to new annotation footnotes

View differences:

src/main/java/eu/etaxonomy/dataportal/elements/RegistrationItem.java
84 84
                }
85 85
            } catch (Exception e) { /* IGNORE */}
86 86
            try{
87
                List<WebElement> std = containerElement.findElements(By.cssSelector(".specimen_type_designation"));
87
                List<WebElement> std = containerElement.findElements(By.cssSelector(".cdm\\:SpecimenTypeDesignation"));
88 88
                specimenTypeDesignations = new ArrayList<BaseElement>(std.size());
89 89
                for(WebElement we : std){
90 90
                    specimenTypeDesignations.add(new BaseElement(we));
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/RegistrationPageTest.java
18 18

  
19 19
import eu.etaxonomy.dataportal.DataPortalSite;
20 20
import eu.etaxonomy.dataportal.ElementUtils;
21
import eu.etaxonomy.dataportal.elements.BaseElement;
21 22
import eu.etaxonomy.dataportal.elements.GalleryImage;
23
import eu.etaxonomy.dataportal.elements.LinkElement;
22 24
import eu.etaxonomy.dataportal.elements.RegistrationItemFull;
23 25
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
24 26
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
......
85 87
        RegistrationItemFull regItem = p.getRegistrationItem();
86 88
        assertNotNull(regItem);
87 89
        assertEquals(
88
                "Epitype: Berlin, small river Wuhle, 52°31'14.844\"N, 13°34'40.116\"E, Skibbe - collector number D06 (B 40 0040871).",
90
                "Epitype: Berlin, small river Wuhle, 52°31'14.844\"N, 13°34'40.116\"E, Skibbe - collector number D06 (B 40 0040871).1",
89 91
                regItem.getSpecimenTypeDesignations().get(0).getText());
90 92
        assertEquals(
91 93
                "for Planothidium victori Novis, Braidwood & Kilroy in Phytotaxa 64. 2012",
......
129 131
                "Nodosilinea radiophila Heidari & Hauer in Fottea 18(2): 142. fig. 5C, D. 1 Nov 2018, nom. illeg.",
130 132
                regItem.getNameElement().getText());
131 133
        assertEquals(
132
                "Holotype: Iran, Islamic Republic of, Talesh Mahalleh, Ramsar., alt. 20 m, 36°52'58.8\"N, 50°40'58.8\"E (CBFS A–83–1).",
134
                "Holotype: Iran, Islamic Republic of, Talesh Mahalleh, Ramsar., alt. 20 m, 36°52'58.8\"N, 50°40'58.8\"E (CBFS A–83–1).1",
133 135
                regItem.getSpecimenTypeDesignations().get(0).getText());
134 136
        assertEquals(
135 137
                "published in: Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018",
......
151 153
                "Ramsaria Heidari & Hauer in Fottea 18(2): 146. 1 Nov 2018",
152 154
                regItem.getNameElement().getText());
153 155
        assertEquals(
154
                "Orig. des.: Ramsaria avicennae Heidari & Hauer Heidari, F. & Hauer, T. - in Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018:146",
156
                "Orig. des.: Ramsaria avicennae Heidari & Hauer Heidari, F. & Hauer, T. - in Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018:1461",
155 157
                regItem.getNameTypeDesignations().get(0).getText());
156 158
        assertEquals(
157 159
                "published in: Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018",
......
159 161
        assertEquals(
160 162
                "Registration on 2019-02-06 13:54:35",
161 163
                regItem.getMetadata().getText());
164
        List<LinkElement> footnoteKeys = regItem.getFootNoteKeys();
165
        assertEquals(1,  footnoteKeys.size());
166
        assertEquals("1", footnoteKeys.get(0).getText());
167
        List<BaseElement> footnotes = regItem.getFootNotes();
168
        assertEquals(1, footnotes.size());
169
        assertEquals("1. editorial note on the type name of Ramsaria", footnotes.get(0).getText());
170

  
162 171
    }
163 172

  
164 173
    @Test

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)