Revision 6a0acdd6
Added by Andreas Müller over 2 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Chichorieae_Feature_ImageSourcesTest.java | ||
---|---|---|
40 | 40 |
FeatureBlock imageSourcesBlock = p.getFeatureBlockAt(0, "image-sources", "div", "span"); |
41 | 41 |
|
42 | 42 |
assertEquals("Gottschlich 2009: t. 20-21 (specimen photos)A", imageSourcesBlock.getFeatureBlockElements().get(0).getText()); |
43 |
assertEquals("A. Gottschlich, G., Die Gattung Hieracium (Compositae) in der Region Abruzzen (Italien) in Stapfia 89. 2009 (as Hieracium bupleuroides C. C. Gmel.)", imageSourcesBlock.getFootNote(0).getText());
|
|
43 |
assertEquals("A. Gottschlich, G. 2009: Die Gattung Hieracium (Compositae) in der Region Abruzzen (Italien) in Stapfia 89 (as Hieracium bupleuroides C. C. Gmel.)", imageSourcesBlock.getFootNote(0).getText());
|
|
44 | 44 |
} |
45 | 45 |
|
46 | 46 |
@Test |
... | ... | |
52 | 52 |
FeatureBlock imageSourcesBlock = p.getFeatureBlockAt(0, "image-sources", "div", "span"); |
53 | 53 |
|
54 | 54 |
assertEquals("Gottschlich 2009: t. 14 (specimen photo)A", imageSourcesBlock.getFeatureBlockElements().get(0).getText()); |
55 |
assertEquals("A. Gottschlich, G., Die Gattung Hieracium (Compositae) in der Region Abruzzen (Italien) in Stapfia 89. 2009 (as Hieracium anchusoides (Arv.-Touv.) St.-Lag.)", imageSourcesBlock.getFootNote(0).getText());
|
|
55 |
assertEquals("A. Gottschlich, G. 2009: Die Gattung Hieracium (Compositae) in der Region Abruzzen (Italien) in Stapfia 89 (as Hieracium anchusoides (Arv.-Touv.) St.-Lag.)", imageSourcesBlock.getFootNote(0).getText());
|
|
56 | 56 |
} |
57 | 57 |
|
58 | 58 |
|
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_CommonNamesTest.java | ||
---|---|---|
63 | 63 |
*/ |
64 | 64 |
WebElement northCaucasus = distributionBlock.getElement().findElement(By.className("descriptionElement617733b9-d59d-4215-9e77-728a5f60e627")); |
65 | 65 |
assertEquals("North CaucasusAN,AO,AP,AQ,AR", northCaucasus.getText()); |
66 |
assertEquals("AN. Galuško, A. I., Flora severnogo Kavkaza 3. 1980", distributionBlock.getFootNote(39).getText());
|
|
67 |
assertEquals("AO. Galuško, A. I., Flora severnogo Kavkaza 3. 1980 (as Lactuca altaica)", distributionBlock.getFootNote(40).getText());
|
|
68 |
assertEquals("AP. Grossgejm, A. A., Flora kavkaza 4. 1934", distributionBlock.getFootNote(41).getText());
|
|
69 |
assertEquals("AQ. Komarov, V. L., Flora SSSR 29. 1964", distributionBlock.getFootNote(42).getText());
|
|
70 |
assertEquals("AR. Komarov, V. L., Flora SSSR 29. 1964 (as Lactuca altaica)", distributionBlock.getFootNote(43).getText());
|
|
66 |
assertEquals("AN. Galuško, A. I. 1980: Flora severnogo Kavkaza 3", distributionBlock.getFootNote(39).getText());
|
|
67 |
assertEquals("AO. Galuško, A. I. 1980: Flora severnogo Kavkaza 3 (as Lactuca altaica)", distributionBlock.getFootNote(40).getText());
|
|
68 |
assertEquals("AP. Grossgejm, A. A. 1934: Flora kavkaza 4", distributionBlock.getFootNote(41).getText());
|
|
69 |
assertEquals("AQ. Komarov, V. L. 1964: Flora SSSR 29", distributionBlock.getFootNote(42).getText());
|
|
70 |
assertEquals("AR. Komarov, V. L. 1964: Flora SSSR 29 (as Lactuca altaica)", distributionBlock.getFootNote(43).getText());
|
|
71 | 71 |
|
72 | 72 |
|
73 | 73 |
FeatureBlock commonNamesBlock = p.getFeatureBlockAt(3, "common_names", "div", "span"); |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_TypeTest.java | ||
---|---|---|
98 | 98 |
assertEquals(TypeDesignationType.specimenTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
99 | 99 |
assertEquals("Type: \"Habitat in Europae frigidioris pratis asperis.\"", typeDesignations.get(0).getText()); |
100 | 100 |
assertEquals(TypeDesignationType.specimenTypeDesignation, typeDesignations.get(1).getTypeDesignationType()); |
101 |
assertEquals("Lectotype (designated by D. Iamonico 2012: ??1): [s. loc.], Herb. Linnaeus, no. 959.1", typeDesignations.get(1).getText());
|
|
101 |
assertEquals("Lectotype (designated by Iamonico, D. 2012: ??1): [s. loc.], Herb. Linnaeus, no. 959.1", typeDesignations.get(1).getText());
|
|
102 | 102 |
} |
103 | 103 |
|
104 | 104 |
@Test |
... | ... | |
110 | 110 |
List<TypeDesignationElement> typeDesignations = p.getHomotypicalGroupTypeDesignations(); |
111 | 111 |
assertEquals("Expecting two Typedesignation", 1, typeDesignations.size()); |
112 | 112 |
assertEquals(TypeDesignationType.nameTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
113 |
assertEquals("Lectotype (designated by M. L. Green: 1783): Hypochaeris radicata L.", typeDesignations.get(0).getText());
|
|
113 |
assertEquals("Lectotype (designated by Green, M. L.: 1783): Hypochaeris radicata L.", typeDesignations.get(0).getText());
|
|
114 | 114 |
|
115 | 115 |
typeDesignations = p.getHeterotypicalGroupTypeDesignations(2); |
116 | 116 |
assertEquals("Expecting two Typedesignation", 1, typeDesignations.size()); |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Lactuca_triquetra_TaxonProfileTest.java | ||
---|---|---|
180 | 180 |
featureLabel = "Common names"; |
181 | 181 |
expectedCssDisplay = "block"; |
182 | 182 |
// after bug #3475 was fixed the number of footnotes increased by one |
183 |
blockTextFull = featureLabel + "\nArabic (Lebanon): سْكَرْيولَة ثُلاثِيَّة الأَرْكانG,2\nG. Nehmé, M., Dictionnaire Etymologique de la Flore du Liban. 2000 (as Scariola triquetra (Labill.) Soják)\n2. recommended";
|
|
183 |
blockTextFull = featureLabel + "\nArabic (Lebanon): سْكَرْيولَة ثُلاثِيَّة الأَرْكانG,2\nG. Nehmé, M. 2000, Dictionnaire Etymologique de la Flore du Liban (as Scariola triquetra (Labill.) Soják)\n2. recommended";
|
|
184 | 184 |
|
185 | 185 |
p.testTableOfContentEntry(featureId++, featureLabel, featureClass); |
186 | 186 |
featureBlock = p.getFeatureBlockAt(featureId, featureClass, "div", "span"); |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Scorzonera_SynonymyTest.java | ||
---|---|---|
47 | 47 |
assertEquals(TypeDesignationType.nameTypeDesignation, typeDesignations.get(0).getTypeDesignationType()); |
48 | 48 |
assertEquals("Lectotype (designated by Green 1929: 1771): Scorzonera humilis L.", typeDesignations.get(0).getText()); // last digit of 1771 is footnote key !!! |
49 | 49 |
assertEquals("should have one footnote from type designation", 1, p.getAcceptedNameFootNotes().size()); |
50 |
assertEquals("", "1. Green, Proposals by British Botanists. 1929", p.getAcceptedNameFootNotes().get(0).getText());
|
|
50 |
assertEquals("", "1. Green 1929: Proposals by British Botanists", p.getAcceptedNameFootNotes().get(0).getText());
|
|
51 | 51 |
// assertNull("The typified name should not have a name description (protologue)", typeDesignations.get(0).getNameDescription()); // FIXME |
52 | 52 |
|
53 | 53 |
assertEquals("= Gelasia Cass. in Bull. Sci. Soc. Philom. Paris 1818: 33. 1818", p.getHeterotypicalGroupSynonymName(1, 1)); |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/MisappliedNamesTest.java | ||
---|---|---|
96 | 96 |
List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships()); |
97 | 97 |
assertEquals(2, footnotes.size()); |
98 | 98 |
assertEquals("1. A&S: Plantas vasculares de Oz", footnotes.get(0).getText()); |
99 |
assertEquals("2. Lem: New Species in the solar system", footnotes.get(1).getText());
|
|
99 |
assertEquals("2. Lem, New Species in the solar system", footnotes.get(1).getText());
|
|
100 | 100 |
// "Species solaris" must not be in the footnotes as it has the same title as the short citation |
101 | 101 |
|
102 | 102 |
} |
... | ... | |
116 | 116 |
List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships()); |
117 | 117 |
assertEquals(2, footnotes.size()); |
118 | 118 |
assertEquals("1. A&S: Plantas vasculares de Oz", footnotes.get(0).getText()); |
119 |
assertEquals("2. Lem: New Species in the solar system", footnotes.get(1).getText());
|
|
119 |
assertEquals("2. Lem, New Species in the solar system", footnotes.get(1).getText());
|
|
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
/** |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimenTableViewTest.java | ||
---|---|---|
107 | 107 |
int rowId = 1; |
108 | 108 |
assertTrue(rows.get(rowId).getAttribute("class").contains("summary_row")); |
109 | 109 |
List<WebElement> cells = rows.get(rowId).findElements(By.tagName("td")); |
110 |
assertEquals("(B SP-99999)", cells.get(1).getText()); |
|
110 |
assertEquals("(B: SP-99999)", cells.get(1).getText());
|
|
111 | 111 |
// cell number 1 has colspan = 5 !!! |
112 | 112 |
assertTrue(cells.get(2).findElement(By.tagName("img")).getAttribute("src") |
113 | 113 |
.endsWith(STEP_DONE_ICON)); // scan |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTopDownViewTest.java | ||
---|---|---|
53 | 53 |
WebElement specimensTable = p.getDataPortalContent().getElement().findElement(By.cssSelector("#specimens table.specimens")); |
54 | 54 |
List<WebElement> rows = specimensTable.findElements(By.xpath("./tbody/tr")); |
55 | 55 |
assertEquals(4, rows.size()); |
56 |
assertEquals("Epitype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047; D. Veloper (CEDiT 2017E68).\nOpen in viewer", rows.get(0).getText()); |
|
56 |
assertEquals("Epitype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047; D. Veloper (CEDiT: 2017E68).\nOpen in viewer", rows.get(0).getText());
|
|
57 | 57 |
assertEquals("Isolectotype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047 (M M-0289351)\nOpen in viewer", rows.get(1).getText()); |
58 | 58 |
assertEquals("Lectotype: BHUPM 671", rows.get(2).getText()); |
59 | 59 |
|
Also available in: Unified diff
fix selenium tests for updated caches