Revision f8d5d6d9
Added by Andreas Kohlbecker almost 5 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/NameRelationshipsTest.java | ||
---|---|---|
59 | 59 |
RegistrationItemFull regItem = p.getRegistrationItem(); |
60 | 60 |
assertNotNull(regItem); |
61 | 61 |
assertEquals( |
62 |
"Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1, comb. nov.", |
|
62 |
"Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1. 2001, comb. nov.",
|
|
63 | 63 |
regItem.getNameElement().getText()); |
64 | 64 |
assertEquals( |
65 |
"Lem, Nonsens species of the developers Vol1", |
|
65 |
"Lem, Nonsens species of the developers Vol1. 2001",
|
|
66 | 66 |
regItem.getCitation().getText()); |
67 | 67 |
|
68 | 68 |
List<BaseElement> nameRelationshipElements = regItem.getNameRelationsipsElements(); |
69 | 69 |
assertEquals(5, nameRelationshipElements.size()); |
70 | 70 |
assertEquals("is new combination for Nepenthes alata Blanco, Fl. Filip., ed. 1: 805. 1837", nameRelationshipElements.get(0).getText()); |
71 | 71 |
assertEquals("is new name for Nepenthes blancoi Blume in Mus. Bot. Lugd.-Bat. 2: 10. 1852", nameRelationshipElements.get(1).getText()); |
72 |
assertEquals("is validating Nodosilinea radiophila Heidari & Hauer in Fottea 18(2): 142. fig. 5C, D. 1.11.2018, nom. illeg.1", nameRelationshipElements.get(2).getText());
|
|
72 |
assertEquals("is validating1 Nodosilinea radiophila Heidari & Hauer in Fottea 18(2): 142. fig. 5C, D. 1.11.2018, nom. illeg.", nameRelationshipElements.get(2).getText());
|
|
73 | 73 |
assertEquals("non Nodosilinea blockensis, New Species in the solar system nec Nodosilinea sensensia, Plantas vasculares de Oz nec Nodosilinea sensensia, Species solaris", nameRelationshipElements.get(3).getText()); |
74 | 74 |
BaseElement orthVarElement = nameRelationshipElements.get(4); |
75 |
assertEquals("orth. var. Nodosilinea sensensi2, 3", orthVarElement.getText());
|
|
75 |
assertEquals("orth. var.2 Nodosilinea sensensi3", orthVarElement.getText());
|
|
76 | 76 |
assertEquals("has orthographic variant", orthVarElement.getElement().findElement(By.className("symbol")).getAttribute("title")); |
77 | 77 |
|
78 | 78 |
List<BaseElement> nameRelationshipFootnotes = regItem.getNameRelationsipFootnotes(); |
79 | 79 |
assertEquals(3, nameRelationshipFootnotes.size()); |
80 | 80 |
assertEquals("1. Art.99.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:22", nameRelationshipFootnotes .get(0).getText()); |
81 | 81 |
assertEquals("2. Art. 88.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", nameRelationshipFootnotes .get(1).getText()); |
82 |
assertEquals("3. Lem, Nonsens species of the developers Vol1", nameRelationshipFootnotes .get(2).getText()); |
|
82 |
assertEquals("3. Lem, Nonsens species of the developers Vol1. 2001", nameRelationshipFootnotes .get(2).getText());
|
|
83 | 83 |
|
84 | 84 |
} |
85 | 85 |
|
... | ... | |
89 | 89 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), taxon_nodosilinea_sensensia_uuid); |
90 | 90 |
|
91 | 91 |
WebElement accName = p.getAcceptedName(); |
92 |
assertEquals("Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1, comb. nov. [non Nodosilinea sensensia nec Nodosilinea sensensia nec Nodosilinea blockensis orth. var. Nodosilinea sensensi1, 2]", accName.getText());
|
|
92 |
assertEquals("Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1. 2001, comb. nov. [non Nodosilinea sensensia nec Nodosilinea sensensia nec Nodosilinea blockensis orth. var.1 Nodosilinea sensensi2]", accName.getText());
|
|
93 | 93 |
|
94 | 94 |
List<BaseElement> footnotes = p.getHomotypicalGroupFootNotes(); |
95 | 95 |
assertEquals("1. Art. 88.9 Turland, N.J., Wiersema, J.H., Barrie, F.R. & al., International Code of Nomenclature for algae, fungi, and plants (Shenzhen Code) adopted by the Nineteenth International Botanical Congress Shenzhen, China, July 2017:33", footnotes.get(0).getText()); |
96 |
assertEquals("2. Lem, Nonsens species of the developers Vol1", footnotes.get(1).getText()); |
|
96 |
assertEquals("2. Lem, Nonsens species of the developers Vol1. 2001", footnotes.get(1).getText());
|
|
97 | 97 |
|
98 | 98 |
} |
99 | 99 |
|
Also available in: Unified diff
ref #7975 relationship footnotes moved to relationship sign/label