Revision 7aa934d6
Added by Andreas Kohlbecker over 12 years ago
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Cyprus_OriginalSourceTest.java | ||
---|---|---|
71 | 71 |
assertEquals("Content", p.getTableOfContentHeader()); |
72 | 72 |
List<LinkElement> tocLinks = p.getTableOfContentLinks(); |
73 | 73 |
assertNotNull("Expecting a list of TOC links in the profile page.", tocLinks); |
74 |
p.testTableOfContentEntry(0, "Endemism", "endemism"); |
|
75 |
p.testTableOfContentEntry(1, "Status", "status"); |
|
76 |
p.testTableOfContentEntry(2, "Distribution", "distribution"); |
|
77 |
p.testTableOfContentEntry(3, "Chromosome Numbers", "chromosome_numbers"); |
|
78 |
|
|
79 |
FeatureBlock featureBlock = p.getFeatureBlockAt(4, "chromosome_numbers", "div", "li"); //FIXME <div><li> bug in portal |
|
74 |
p.testTableOfContentEntry(0, "Status", "status"); |
|
75 |
p.testTableOfContentEntry(1, "Endemism", "endemism"); |
|
76 |
// p.testTableOfContentEntry(2, "Red Data Book category", "red_data_book_category"); |
|
77 |
// p.testTableOfContentEntry(3, "Systematics", "systematics"); |
|
78 |
p.testTableOfContentEntry(2, "Chromosome Numbers", "chromosome_numbers"); |
|
79 |
p.testTableOfContentEntry(3, "Distribution", "distribution"); |
|
80 |
|
|
81 |
FeatureBlock featureBlock = p.getFeatureBlockAt(2, "chromosome_numbers", "div", "li"); //FIXME <div><li> bug in portal |
|
80 | 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()); |
81 | 83 |
assertEquals("Chromosome Numbers", featureBlock.getHeader()); |
82 | 84 |
assertEquals("expecting no footnote keys", 0, featureBlock.getFootNoteKeys().size()); |
Also available in: Unified diff
fixing test issues