Revision c8ad8015
Added by Andreas Müller over 2 years ago
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Scorzonera_SynonymyTest.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.dataportal.pages.TaxonSynonymyPage; |
25 | 25 |
|
26 | 26 |
/** |
27 |
* |
|
28 | 27 |
* @author a.kohlbecker |
29 |
* |
|
30 | 28 |
*/ |
31 |
|
|
32 | 29 |
@DataPortalContexts( { DataPortalSite.cichorieae }) |
33 | 30 |
public class Scorzonera_SynonymyTest extends CdmDataPortalTestBase{ |
34 | 31 |
|
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Allium_guttatum_subsp_guttatum_TaxonProfileTest.java | ||
---|---|---|
103 | 103 |
|
104 | 104 |
featureBlock = p.getFeatureBlockAt(4, "distribution", "div", "span"); |
105 | 105 |
|
106 |
assertEquals("Distribution\nDivision 2A,B\nA. R. D. Meikle, Flora of Cyprus 2. 1985, B. R. Hand, Supplementary notes to the flora of Cyprus VI. in Willdenowia 39. 2009", featureBlock.getText());
|
|
106 |
assertEquals("Distribution\nDivision 2A,B\nA. R. Hand, Supplementary notes to the flora of Cyprus VI. – Willdenowia 39. 2009, B. Meikle, R.D. 1985: Flora of Cyprus 2", featureBlock.getText());
|
|
107 | 107 |
assertEquals("Distribution", featureBlock.getHeaderText()); |
108 | 108 |
assertEquals("expecting two footnote keys", 2, featureBlock.countFootNoteKeys()); |
109 | 109 |
|
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Bassia_indica_TaxonProfileTest.java | ||
---|---|---|
80 | 80 |
+ "Division 4A\n" |
81 | 81 |
+ "Division 5B\n" |
82 | 82 |
+ "Division 6C\n" |
83 |
+ "The record for division 5 may refer to division 6.\nA. J. Chrtek & B. Slavík, Contribution to the flora of Cyprus. 4. in Fl. Medit. 10. 2001, B. A. Della & G. Iatrou, New plant records from Cyprus in Kew Bull. 50. 1995, C. R. Hand, Supplementary notes to the flora of Cyprus III. in Willdenowia 33. 2003", featureBlock.getText());
|
|
83 |
+ "The record for division 5 may refer to division 6.\nChrtek, J. & B. Slavík 2001: Contribution to the flora of Cyprus. 4. – Fl. Medit. 10: 235-259, B. Della, A. & Iatrou, G. 1995: New plant records from Cyprus. – Kew Bull. 50: 387-396, C. Hand, R. 2003: Supplementary notes to the flora of Cyprus III. – Willdenowia 33: 305-325", featureBlock.getText());
|
|
84 | 84 |
assertEquals("Distribution", featureBlock.getHeaderText()); |
85 | 85 |
assertEquals("expecting two footnote keys", 3, featureBlock.countFootNoteKeys()); |
86 | 86 |
|
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/CyprusPolytomousKeyTest.java | ||
---|---|---|
49 | 49 |
|
50 | 50 |
List<BaseElement> sourceRefs = p.getSources(); |
51 | 51 |
|
52 |
Assert.assertEquals( "G. N. Hadjikyriakou, Aromatic and spicy plants in Cyprus. 2007", sourceRefs.get(0).getText());
|
|
52 |
Assert.assertEquals( "G. N. Hadjikyriakou 2007: Aromatic and spicy plants in Cyprus", sourceRefs.get(0).getText());
|
|
53 | 53 |
Assert.assertEquals(1, sourceRefs.get(0).getLinksInElement().size()); |
54 | 54 |
|
55 | 55 |
Assert.assertEquals("R. D. Meikle, Flora of Cyprus 2. 1985", sourceRefs.get(1).getText()); |
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Cyprus_OriginalSourceTest.java | ||
---|---|---|
79 | 79 |
assertEquals("Chromosome numbers", featureBlock.getHeaderText()); |
80 | 80 |
|
81 | 81 |
// see #2288 (Cyprus: ChromosomeNumbers: formating nameInSource) |
82 |
assertEquals("Chromosome numbers\n2n = 18 (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus in Candollea 48. 1993 (as Cistus creticus L.)) (B. Slavík & V. Jarolímová & J. Chrtek, Chromosome counts of some plants from Cyprus. 2 in Acta Univ. Carol., Biol. 46. 2002 (as Cistus creticus L.))", featureBlock.getText());
|
|
82 |
assertEquals("Chromosome numbers\n2n = 18 (B. Slavík, Jarolímová, V. & Chrtek, J. 1993: Chromosome counts of some plants from Cyprus. – Candollea 48: 221-230 (as Cistus creticus L.)) (B. Slavík, Jarolímová, V. & Chrtek, J. 2002: Chromosome counts of some plants from Cyprus. 2. – Acta Univ. Carol., Biol. 46: 295-302 (as Cistus creticus L.))", featureBlock.getText());
|
|
83 | 83 |
|
84 | 84 |
assertFalse("expecting no footnote keys", featureBlock.hasFootNoteKeys()); |
85 | 85 |
List<WebElement> linksInFeatureBlock = featureBlock.getElement().findElements(By.tagName("a")); |
Also available in: Unified diff
fix selenium tests for updated caches (cont.)