Project

General

Profile

« Previous | Next » 

Revision 1b9c21eb

Added by Andreas Kohlbecker over 12 years ago

fixing test issues

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Allium_guttatum_subsp_guttatum_TaxonProfileTest.java
76 76
		assertEquals("Content", p.getTableOfContentHeader());
77 77
		List<LinkElement> links = p.getTableOfContentLinks();
78 78
		assertNotNull("Expecting a list of TOC links in the profile page.", links);
79
		p.testTableOfContentEntry(0, "Endemism", "endemism");
80
		p.testTableOfContentEntry(1, "Red Data Book category", "red_data_book_category");
81
		p.testTableOfContentEntry(2, "Status", "status");
79
		p.testTableOfContentEntry(0, "Status", "status");
80
		p.testTableOfContentEntry(1, "Endemism", "endemism");
81
		p.testTableOfContentEntry(2, "Red Data Book category", "red_data_book_category");
82 82
		p.testTableOfContentEntry(3, "Systematics", "systematics");
83 83
		p.testTableOfContentEntry(4, "Distribution", "distribution");
84 84

  
85
		FeatureBlock featureBlock = p.getFeatureBlockAt(0, "endemism", "div", "div");
85
		FeatureBlock featureBlock;
86

  
87
		featureBlock = p.getFeatureBlockAt(0, "status", "div", "div");
88
		assertEquals("Status\nIndigenous (IN)", featureBlock.getText());
89

  
90
		featureBlock = p.getFeatureBlockAt(2, "endemism", "div", "div");
86 91
		assertEquals("Endemism\nnot endemic", featureBlock.getText());
87 92

  
88
		featureBlock = p.getFeatureBlockAt(1, "red_data_book_category", "div", "div");
93
		featureBlock = p.getFeatureBlockAt(2, "red_data_book_category", "div", "div");
89 94
		assertEquals("Red Data Book category\nData deficient (DD)", featureBlock.getText());
90 95

  
91
		featureBlock = p.getFeatureBlockAt(2, "status", "div", "div");
92
		assertEquals("Status\nIndigenous (IN)", featureBlock.getText());
93

  
94 96
		//FIXME
95 97
//		featureBlock = p.getFeatureBlockAt(3, "systematics", "div", null);
96 98
//		assertEquals("Systematics\nTaxonomy and nomenclature follow Mathew (1996).\nMathew B. 1996: A review of Allium section Allium . - Kew.", featureBlock.getText());
......
111 113
		assertEquals("1. R. D. Meikle, Flora of Cyprus 1. 1977", footNote_1.getText());
112 114

  
113 115
		WebElement distributionMapImage = featureBlock.getElement().findElement(By.className("distribution_map"));
114
		assertEquals("http://edit.br.fgov.be/edit_wp5/v1.1/rest_gen.php?title=a:indigenous&ad=cyprusdivs:bdcode:a:2&as=z:ffffff,606060,,|y:1874CD,,|a:339966,,0.1,&l=background_gis:y,cyprusdivs:z&ms=500&bbox=32,34,35,36&label=1&img=true&legend=1&mlp=3&mc_s=Georgia,15,blue&mc=&recalculate=false", distributionMapImage.getAttribute("src"));
116
		assertEquals("http://edit.br.fgov.be/edit_wp5/v1.1/rest_gen.php?title=a:indigenous&ad=cyprusdivs:bdcode:a:2&as=z:ffffff,606060,,|y:1874CD,,|a:339966,,0.1,&l=background_gis:y,cyprusdivs:z&ms=500,380&bbox=32,34,35,36&label=1&img=true&legend=1&mlp=3&mc_s=Georgia,15,blue&mc=&recalculate=false", distributionMapImage.getAttribute("src"));
115 117

  
116 118
	}
117 119

  

Also available in: Unified diff