Revision db17326d
Added by Katja Luther over 1 year ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimenTableViewTest.java | ||
---|---|---|
118 | 118 |
++rowId; |
119 | 119 |
*/ |
120 | 120 |
assertTrue(rows.get(rowId).getAttribute("class").contains("summary_row")); |
121 |
List<WebElement> cells = cells = rows.get(rowId).findElements(By.tagName("td"));
|
|
121 |
List<WebElement> cells = rows.get(rowId).findElements(By.tagName("td")); |
|
122 | 122 |
assertEquals("Germany", cells.get(1).getText()); |
123 | 123 |
assertEquals("1835-04-02", cells.get(2).getText()); |
124 | 124 |
assertEquals("", cells.get(3).getText()); |
... | ... | |
162 | 162 |
.endsWith(STEP_DONE_ICON)); |
163 | 163 |
assertTrue(cells.get(6).findElement(By.tagName("img")).getAttribute("src") |
164 | 164 |
.endsWith(STEP_DONE_ICON)); |
165 |
assertTrue(cells.get(7).findElement(By.tagName("img")).getAttribute("src") |
|
166 |
.contains(DETAIL_IMAGE_DERIVATE_ICON)); |
|
167 |
|
|
165 |
List<WebElement> imageCells = cells.get(7).findElements(By.tagName("img"); |
|
166 |
boolean findDetailImage = false; |
|
167 |
for(WebElement el: imageCells){ |
|
168 |
if (el.getAttribute("src").endsWith(DETAIL_IMAGE_DERIVATE_ICON){ |
|
169 |
findDetailImage = true; |
|
170 |
break; |
|
171 |
} |
|
172 |
|
|
173 |
} |
|
174 |
assertTrue(findDetailImage); |
|
175 |
|
|
168 | 176 |
|
169 | 177 |
|
170 | 178 |
// details row |
Also available in: Unified diff
ref #10137: test whether there are an icon for detail image