Project

General

Profile

« Previous | Next » 

Revision 38dc0a39

Added by Andreas Kohlbecker about 12 years ago

updating tests

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/junit/CdmDataPortalTestBase.java
101 101
		try {
102 102

  
103 103
			firefoxProfile.addExtension(CdmDataPortalTestBase.class, "/org/mozilla/addons/firebug-" + FIREBUG_VERSION + ".xpi");
104
			firefoxProfile.setPreference("extensions.firebug.currentVersion", FIREBUG_VERSION); // avoid displaying firt run page
104
			firefoxProfile.setPreference("extensions.firebug.currentVersion", FIREBUG_VERSION); // avoid displaying first run page
105 105

  
106 106
			firefoxProfile.addExtension(CdmDataPortalTestBase.class, "/org/mozilla/addons/firexpath-" + FIREXPATH_VERSION + "-fx.xpi");
107 107

  
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/CyprusSearchTest.java
10 10
package eu.etaxonomy.dataportal.selenium.tests;
11 11

  
12 12
import org.junit.Assert;
13
import org.junit.Ignore;
13 14
import org.junit.Test;
14 15
import org.openqa.selenium.By;
15 16
import org.openqa.selenium.RenderedWebElement;
......
31 32
	 * see http://dev.e-taxonomy.eu/trac/ticket/2350
32 33
	 */
33 34
	@Test
35
	@Ignore
34 36
	public void searchResultsWithoutAnnotationFootnotes(){
35 37
		driver.get(getBaseUrl() + "?query=Genis*&search[tree]=0c2b5d25-7b15-4401-8b51-dd4be0ee5cab&q=cdm_dataportal%2Fsearch%2Ftaxon&search[pageSize]=25&search[pageNumber]=0&search[doTaxa]=1&search[doSynonyms]=1&search[doTaxaByCommonNames]=0");
36 38

  
modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/test/java/eu/etaxonomy/dataportal/selenium/tests/FloraMalesianaPolytomousKeyTest.java
43 43

  
44 44
		// Page title
45 45
		RenderedWebElement element = (RenderedWebElement)driver.findElement(By.xpath(".//*[@id='squeeze']/div/div/h2"));
46
		Assert.assertEquals("Key to Malaysian Sapindaceae Genera (based on vegetative and flower characters)", element.getText());
46
		Assert.assertEquals("KEY I TO THE MALESIAN GENERA (based on vegetative and flower characters) (F. Adema)", element.getText());
47 47

  
48 48
		List<WebElement> keyTableList = driver.findElements(By.className("polytomousKey"));
49 49
		Assert.assertEquals("Only one polytomousKey table expected", 1, keyTableList.size());

Also available in: Unified diff