Revision 43a2f169
Added by Andreas Kohlbecker over 3 years ago
src/main/java/eu/etaxonomy/dataportal/pages/PortalPage.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.dataportal.pages; |
2 | 2 |
|
3 | 3 |
import static org.junit.Assert.assertFalse; |
4 |
import static org.junit.Assert.assertTrue; |
|
4 | 5 |
|
5 | 6 |
import java.io.File; |
6 | 7 |
import java.io.IOException; |
... | ... | |
181 | 182 |
* |
182 | 183 |
*/ |
183 | 184 |
protected void pageHealthChecks() { |
185 |
try { |
|
186 |
String ignore_error = null; |
|
187 |
List<String> errors = getErrors().stream().filter(str -> ignore_error != null && str.startsWith(ignore_error)).collect(Collectors.toList()); |
|
188 |
assertTrue("The page must not show an error box", errors.size() == 0); |
|
189 |
} catch (NoSuchElementException e) { |
|
190 |
//IGNORE since this is expected! |
|
191 |
} |
|
184 | 192 |
assertFalse("The default footnote list key PAGE_GLOBAL must not occur in the page.", driver.getPageSource().contains("member-of-footnotes-PAGE_GLOBAL")); |
185 | 193 |
} |
186 | 194 |
|
Also available in: Unified diff
ref #9087 restoring erroneously removed error check