Project

General

Profile

« Previous | Next » 

Revision d80b3059

Added by Andreas Kohlbecker over 4 years ago

ref #8440 adapting and extending tests

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/RegistrationPageTest.java
69 69
                "Planothidium victori Novis, Braidwood & Kilroy in Phytotaxa 64. 2012",
70 70
                regItem.getNameElement().getText());
71 71
        assertEquals(
72
                "Novis, P. M., Braidwood, J. & Kilroy, C., Small diatoms (Bacillariophyta) in cultures from the Styx River, New Zealand, including descriptions of three new species in Phytotaxa 64: 11-45. 2012",
72
                "published in: Novis, P. M., Braidwood, J. & Kilroy, C., Small diatoms (Bacillariophyta) in cultures from the Styx River, New Zealand, including descriptions of three new species in Phytotaxa 64: 11-45. 2012",
73 73
                regItem.getCitation().getText());
74 74
        assertEquals(
75 75
                "Registration on 2019-02-06 14:21:52",
......
91 91
                "for Planothidium victori Novis, Braidwood & Kilroy in Phytotaxa 64. 2012",
92 92
                regItem.getTypifiedNameElement().getText());
93 93
        assertEquals(
94
                "Jahn, R., Abarca, N., Gemeinholzer, B. & al., Planothidium lanceolatum and Planothicium frequentissimum reinvestigated wieht molecular methods and morphology: four new species and the taxonomic importance of the sinus and cavum in Diatom Research 32: 75-107. 2017",
94
                "published in: Jahn, R., Abarca, N., Gemeinholzer, B. & al., Planothidium lanceolatum and Planothicium frequentissimum reinvestigated wieht molecular methods and morphology: four new species and the taxonomic importance of the sinus and cavum in Diatom Research 32: 75-107. 2017",
95 95
                regItem.getCitation().getText());
96 96
        assertEquals(
97 97
                "Registration on 2019-02-06 14:20:51",
......
131 131
                "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).",
132 132
                regItem.getSpecimenTypeDesignations().get(0).getText());
133 133
        assertEquals(
134
                "Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018",
134
                "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",
135 135
                regItem.getCitation().getText());
136 136
        assertEquals(
137 137
                "Registration on 2019-02-06 14:16:45",
......
153 153
                "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",
154 154
                regItem.getNameTypeDesignations().get(0).getText());
155 155
        assertEquals(
156
                "Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018",
156
                "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",
157 157
                regItem.getCitation().getText());
158 158
        assertEquals(
159 159
                "Registration on 2019-02-06 13:54:35",
......
175 175
                "Holotype: Iran, Islamic Republic of, Ramsar, alt. 20 m, 36°52'58.8\"N, 50°40'58.8\"E (CBFS A–087–1).",
176 176
                regItem.getSpecimenTypeDesignations().get(0).getText());
177 177
        assertEquals(
178
                "Heidari, F., Zima, J., Riahi, H. & al., New simple trichal cyanobacterial taxa isolated from radioactive thermal springs in Fottea 18(2): 137–149. 2018",
178
                "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",
179 179
                regItem.getCitation().getText());
180 180
        assertEquals(
181 181
                "Registration on 2019-02-06 13:54:29",
......
194 194
        assertNotNull(regItem);
195 195
        assertTrue(
196 196
                regItem.getSpecimenTypeDesignations().get(0).getText().startsWith("Lectotype: Germany, Berlin, 2.4.1835 (BHUPM 671). Naturkundemuseum Berlin (MFN) - Ehrenberg Collection"));
197
        assertEquals(
198
                "BHUPM 671",
199
                regItem.getSpecimenTypeDesignations().get(0).getLinksInElement().get(0).getText());
200
        assertTrue(
201
                regItem.getSpecimenTypeDesignations().get(0).getLinksInElement().get(1).getUrl().endsWith("cdm_dataportal/reference/c5d980ff-8766-4322-9acb-7b0a499de707"));
197 202
        List<List<GalleryImage>> galleryImages = ElementUtils.getGalleryImages(regItem.getSpecimenTypeDesignations().get(0).getElement(), p.getWait());
198 203
        assertEquals("Expecting one row of images", 1, galleryImages.size());
199 204
        assertEquals("Expecting 1 image in row", 1, galleryImages.get(0).size());
......
204 209
                "Isolectotype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (M M-0289351). http://herbarium.bgbm.org/object/B400042045",
205 210
                regItem.getSpecimenTypeDesignations().get(1).getText());
206 211
        assertEquals(
207
                "http://herbarium.bgbm.org/object/B400042045",
212
                "M M-0289351",
208 213
                regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(0).getText());
209 214
        assertEquals(
210 215
                "http://herbarium.bgbm.org/object/B400042045",
211
                regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(0).getUrl());
216
                regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(1).getText());
212 217
        assertEquals(
213 218
                "Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (CEDiT 2017E68).",
214 219
                regItem.getSpecimenTypeDesignations().get(2).getText());
......
216 221
                "for Glenodinium apiculatum Ehrenb., Infusionsthierchen: 258, pl. XXII. 24.7.1838-8.1838",
217 222
                regItem.getTypifiedNameElement().getText());
218 223
        assertEquals(
219
                "Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H., Still curling after all these years: Glenodinium apiculatum Ehrenb. (Peridiniales, Dinophyceae) repeatedly found at its type locality in Berlin (Germany) in Systematics and Biodiversity. 2017",
224
                "published in: Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H., Still curling after all these years: Glenodinium apiculatum Ehrenb. (Peridiniales, Dinophyceae) repeatedly found at its type locality in Berlin (Germany) in Systematics and Biodiversity. 2017",
220 225
                regItem.getCitation().getText());
221 226
        assertEquals(
222 227
                "Registration on 2019-02-12 09:08:29",
themes/zen_dataportal/sass/cdm.scss
211 211
    color: #999;
212 212
  }
213 213

  
214

  
214 215
  .published-name {
215 216
    .TaxonName .name {
216 217
      font-weight: bold;

Also available in: Unified diff