Revision b1f25a11
Added by Andreas Kohlbecker over 3 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTreeViewTest.java | ||
---|---|---|
133 | 133 |
|
134 | 134 |
WebElement descriptionListContainerElement; |
135 | 135 |
WebElement derivateTreeContainer; |
136 |
DescriptionList dl1, dl2, dl3;
|
|
136 |
DescriptionList dl1, dl3, dl2;
|
|
137 | 137 |
List<WebElement> dls; |
138 | 138 |
DescriptionElement specimenTypeDesignation_dd; |
139 | 139 |
BaseElement descriptionListContainer; |
... | ... | |
166 | 166 |
assertEquals("Detail page", link1.getText()); |
167 | 167 |
assertTrue(link1.getUrl().endsWith("/cdm_dataportal/occurrence/89d36e79-3e80-4468-986e-411ca391452e")); |
168 | 168 |
|
169 |
|
|
170 | 169 |
dl2 = new DescriptionList(dls.get(1).findElement(By.tagName("dl"))); |
171 | 170 |
|
172 | 171 |
assertEquals("Preserved Specimen", dl2.joinedDescriptionElementText("Record base:")); |
173 |
assertEquals("M-0289351", dl2.joinedDescriptionElementText("Accession number:"));
|
|
174 |
assertEquals("M", dl2.joinedDescriptionElementText("Collection:"));
|
|
172 |
assertEquals("2017E68", dl2.joinedDescriptionElementText("Accession number:"));
|
|
173 |
assertEquals("CEDiT at Botanic Garden and Botanical Museum Berlin-Dahlem (BGBM)", dl2.joinedDescriptionElementText("Collection:"));
|
|
175 | 174 |
assertEquals("Specimen", dl2.joinedDescriptionElementText("Kind of unit:")); |
176 | 175 |
assertEquals("Gathering in-situ", dl2.joinedDescriptionElementText("Gathering type:")); |
177 |
assertEquals("Isolectotype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20172)",
|
|
176 |
assertEquals("Epitype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20172)",
|
|
178 | 177 |
dl2.joinedDescriptionElementText("Specimen type designations:")); |
179 |
specimenTypeDesignationLinks = dl2.getDescriptionGroups().get("Specimen type designations:").get(0).getLinksInElement(); |
|
178 |
specimenTypeDesignation_dd = dl2.getDescriptionGroups().get("Specimen type designations:").get(0); |
|
179 |
specimenTypeDesignationLinks = specimenTypeDesignation_dd.getLinksInElement(); |
|
180 | 180 |
assertEquals("expecting one footnote key link", 1, specimenTypeDesignationLinks.size()); |
181 | 181 |
|
182 |
|
|
183 | 182 |
dl3 = new DescriptionList(dls.get(2).findElement(By.tagName("dl"))); |
184 | 183 |
|
185 | 184 |
assertEquals("Preserved Specimen", dl3.joinedDescriptionElementText("Record base:")); |
186 |
assertEquals("2017E68", dl3.joinedDescriptionElementText("Accession number:"));
|
|
187 |
assertEquals("CEDiT at Botanic Garden and Botanical Museum Berlin-Dahlem (BGBM)", dl3.joinedDescriptionElementText("Collection:"));
|
|
185 |
assertEquals("M-0289351", dl3.joinedDescriptionElementText("Accession number:"));
|
|
186 |
assertEquals("M", dl3.joinedDescriptionElementText("Collection:"));
|
|
188 | 187 |
assertEquals("Specimen", dl3.joinedDescriptionElementText("Kind of unit:")); |
189 | 188 |
assertEquals("Gathering in-situ", dl3.joinedDescriptionElementText("Gathering type:")); |
190 |
assertEquals("Epitype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20173)",
|
|
189 |
assertEquals("Isolectotype (designated by Kretschmann, J., Žerdoner ?alasan, A. & Kusber, W.-H. 20173)",
|
|
191 | 190 |
dl3.joinedDescriptionElementText("Specimen type designations:")); |
192 |
specimenTypeDesignation_dd = dl3.getDescriptionGroups().get("Specimen type designations:").get(0); |
|
193 |
specimenTypeDesignationLinks = specimenTypeDesignation_dd.getLinksInElement(); |
|
191 |
specimenTypeDesignationLinks = dl3.getDescriptionGroups().get("Specimen type designations:").get(0).getLinksInElement(); |
|
194 | 192 |
assertEquals("expecting one footnote key link", 1, specimenTypeDesignationLinks.size()); |
195 | 193 |
|
196 | 194 |
|
197 | 195 |
|
196 |
|
|
197 |
|
|
198 | 198 |
} |
199 | 199 |
|
200 | 200 |
} |
Also available in: Unified diff
ref #8419 speciemen tree view: defined order of child derivatives - adapting test case