Revision 4a6a3ad3
Added by Andreas Müller over 2 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/MisappliedNamesTest.java | ||
---|---|---|
1 |
/** |
|
1 |
/**
|
|
2 | 2 |
* Copyright (C) 2009 EDIT |
3 | 3 |
* European Distributed Institute of Taxonomy |
4 | 4 |
* http://www.e-taxonomy.eu |
... | ... | |
95 | 95 |
|
96 | 96 |
List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships()); |
97 | 97 |
assertEquals(2, footnotes.size()); |
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());
|
|
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());
|
|
100 | 100 |
// "Species solaris" must not be in the footnotes as it has the same title as the short citation |
101 | 101 |
|
102 | 102 |
} |
... | ... | |
115 | 115 |
|
116 | 116 |
List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships()); |
117 | 117 |
assertEquals(2, footnotes.size()); |
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());
|
|
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());
|
|
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
/** |
... | ... | |
131 | 131 |
|
132 | 132 |
List<BaseElement> footnotes = ElementUtils.findFootNotes(p.getTaxonRelationships()); |
133 | 133 |
BaseElement footNote = footnotes.get(0); |
134 |
assertEquals("1. A&S, Plantas vasculares de Oz", footNote.getText());
|
|
134 |
assertEquals("1. A&S: Plantas vasculares de Oz", footNote.getText());
|
|
135 | 135 |
List<LinkElement> links = footNote.getLinksInElement(); |
136 | 136 |
assertEquals(1, links.size()); |
137 | 137 |
assertEquals("http://doi.org/10.1111/j.1756-1051.2012.00012.x", links.get(0).getUrl()); |
138 |
|
|
139 | 138 |
} |
140 | 139 |
|
141 | 140 |
|
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimenTableViewTest.java | ||
---|---|---|
1 |
/** |
|
1 |
/**
|
|
2 | 2 |
* Copyright (C) 2020 EDIT |
3 | 3 |
* European Distributed Institute of Taxonomy |
4 | 4 |
* http://www.e-taxonomy.eu |
... | ... | |
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 | ||
---|---|---|
1 |
/** |
|
1 |
/**
|
|
2 | 2 |
* Copyright (C) 2020 EDIT |
3 | 3 |
* European Distributed Institute of Taxonomy |
4 | 4 |
* http://www.e-taxonomy.eu |
... | ... | |
54 | 54 |
List<WebElement> rows = specimensTable.findElements(By.xpath("./tbody/tr")); |
55 | 55 |
assertEquals(4, rows.size()); |
56 | 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 |
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());
|
|
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 |
|
60 | 60 |
Dynabox dynabox1 = new Dynabox(rows.get(0).findElement(By.className("dynabox")), driver); |
Also available in: Unified diff
ref #9650 , ref #9849 update some dataportal tests to updated caches