Revision 1636cc86
Added by Andreas Kohlbecker almost 5 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/NameRelationshipsTest.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
private static final UUID taxon_nodosilinea_sensensia_uuid = UUID.fromString("7094ea13-2a95-46d9-bfca-8c0e0848e44c"); |
40 | 40 |
|
41 |
private static final UUID taxon_bulbostylis_pauciflora_uuid = UUID.fromString("27f2ad59-0e11-44f4-a931-c69053260321"); |
|
42 |
|
|
41 | 43 |
String titleSuffix = " | Integration test reference"; |
42 | 44 |
|
43 | 45 |
@Before |
... | ... | |
85 | 87 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), taxon_nodosilinea_sensensia_uuid); |
86 | 88 |
|
87 | 89 |
WebElement accName = p.getAcceptedName(); |
88 |
assertEquals("Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1\n[non Nodosilinea sensensia nec Nodosilinea sensensia nec Nodosilinea blockensis orth. var. Nodosilinea sensensi1, 2 ]", accName.getText());
|
|
90 |
assertEquals("Nodosilinea sensensia (Blanco) Heidari & Hauer ex Lem, Nonsens species of the developers Vol1 [non Nodosilinea sensensia nec Nodosilinea sensensia nec Nodosilinea blockensis orth. var. Nodosilinea sensensi1, 2 ]", accName.getText());
|
|
89 | 91 |
|
90 | 92 |
List<BaseElement> footnotes = p.getHomotypicalGroupFootNotes(); |
91 | 93 |
assertEquals("1. Art. 88.9 Turland, Wiersema, Barrie, Greuter, D.Hawksw., Herend., S.Knapp, Kusber, D.Z.Li, Marhold, T.W.May, McNeill, A.M.Monro, J.Prado, M.J.Price & Gideon F.Sm., 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()); |
... | ... | |
93 | 95 |
|
94 | 96 |
} |
95 | 97 |
|
98 |
/** |
|
99 |
* Test for https://dev.e-taxonomy.eu/redmine/issues/5697 |
|
100 |
* |
|
101 |
* @throws MalformedURLException |
|
102 |
* @throws UnsupportedEncodingException |
|
103 |
*/ |
|
104 |
@Test |
|
105 |
public void testIssue5697() throws MalformedURLException, UnsupportedEncodingException { |
|
106 |
|
|
107 |
TaxonSynonymyPage p = new TaxonSynonymyPage(driver, getContext(), taxon_bulbostylis_pauciflora_uuid); |
|
108 |
|
|
109 |
WebElement accName = p.getAcceptedName(); |
|
110 |
assertEquals("Bulbostylis pauciflora (Liebm.) C. B. Clarke, nom. cons. [non Bulbostylis pauciflora (Kunth) D.C. ]", accName.getText()); |
|
111 |
assertEquals("is conserved against", accName.findElement(By.className("symbol")).getAttribute("title")); |
|
112 |
|
|
113 |
} |
|
114 |
|
|
96 | 115 |
} |
Also available in: Unified diff
fixing regression ref #5697: including conserverd against in non ... nec ... , ref #4177 removing dom block from inline name rels