Revision 8e8784d0
Added by Andreas Kohlbecker over 4 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/RegistrationPageTest.java | ||
---|---|---|
193 | 193 |
RegistrationItemFull regItem = p.getRegistrationItem(); |
194 | 194 |
assertNotNull(regItem); |
195 | 195 |
assertTrue( |
196 |
regItem.getSpecimenTypeDesignations().get(0).getText().startsWith("Lectotype: [icon] (BHUPM 671)"));
|
|
196 |
regItem.getSpecimenTypeDesignations().get(0).getText().startsWith("Lectotype: Germany, Berlin, 2.4.1835 (BHUPM 671). Naturkundemuseum Berlin (MFN) - Ehrenberg Collection"));
|
|
197 | 197 |
List<List<GalleryImage>> galleryImages = ElementUtils.getGalleryImages(regItem.getSpecimenTypeDesignations().get(0).getElement(), p.getWait()); |
198 | 198 |
assertEquals("Expecting one row of images", 1, galleryImages.size()); |
199 | 199 |
assertEquals("Expecting 1 image in row", 1, galleryImages.get(0).size()); |
... | ... | |
201 | 201 |
"http://download.naturkundemuseum-berlin.de/Ehrenberg/Ec%20Drawings/Ec%20draw%20001-999/Ec%20draw%20600-699/ECdraw671.jpg", |
202 | 202 |
galleryImages.get(0).get(0).getImageLink().getUrl()); |
203 | 203 |
assertEquals( |
204 |
"Isolectotype: (M M-0289351). http://herbarium.bgbm.org/object/B400042045", |
|
204 |
"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 | 205 |
regItem.getSpecimenTypeDesignations().get(1).getText()); |
206 | 206 |
assertEquals( |
207 | 207 |
"http://herbarium.bgbm.org/object/B400042045", |
... | ... | |
210 | 210 |
"http://herbarium.bgbm.org/object/B400042045", |
211 | 211 |
regItem.getSpecimenTypeDesignations().get(1).getLinksInElement().get(0).getUrl()); |
212 | 212 |
assertEquals( |
213 |
"Epitype: (CEDiT 2017E68).", |
|
213 |
"Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (CEDiT 2017E68).",
|
|
214 | 214 |
regItem.getSpecimenTypeDesignations().get(2).getText()); |
215 | 215 |
assertEquals( |
216 | 216 |
"for Glenodinium apiculatum Ehrenb., Infusionsthierchen: 258, pl. XXII. 24.7.1838-8.1838", |
Also available in: Unified diff
ref #8366 adapting tests to full typedesignation display with map in registration page