Revision 7974c78a
Added by Andreas Kohlbecker about 11 years ago
7.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Cyprus_OriginalSourceTest.java | ||
---|---|---|
79 | 79 |
p.testTableOfContentEntry(tocIndex++, "Distribution", "distribution"); |
80 | 80 |
|
81 | 81 |
FeatureBlock featureBlock = p.getFeatureBlockAt(2, "chromosome-numbers", "div", "li"); //FIXME <div><li> bug in portal |
82 |
assertEquals("Chromosome numbers\nCistus creticus L.: 2n = 18 (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus in Candollea 48. 1993) (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus. 2 in Acta Univ. Carol., Biol. 46. 2002)", featureBlock.getText());
|
|
82 |
assertEquals("Chromosome numbers\nCistus creticus L. 2n = 18 (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus in Candollea 48. 1993) (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus. 2 in Acta Univ. Carol., Biol. 46. 2002)", featureBlock.getText()); |
|
83 | 83 |
assertEquals("Chromosome numbers", featureBlock.getHeader()); |
84 | 84 |
assertEquals("expecting no footnote keys", 0, featureBlock.getFootNoteKeys().size()); |
85 | 85 |
List<WebElement> linksInFeatureBlock = featureBlock.getElement().findElements(By.tagName("a")); |
Also available in: Unified diff
adapting test to fixed code