Project

General

Profile

« Previous | Next » 

Revision 24ee49b9

Added by Andreas Kohlbecker over 12 years ago

switching to selenium 2.3.1 & SearchPage & OriginalSource tests

View differences:

modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/pages/TaxonProfilePage.java
10 10
 */
11 11
package eu.etaxonomy.dataportal.pages;
12 12

  
13
import static org.junit.Assert.assertEquals;
14
import static org.junit.Assert.assertTrue;
15

  
13 16
import java.net.MalformedURLException;
14 17
import java.util.ArrayList;
15 18
import java.util.List;
......
148 151
		return null;
149 152
	}
150 153

  
154
	/**
155
	 * @param index
156
	 * @param tocLinkText
157
	 * @param tocLinkFragment
158
	 */
159
	public void testTableOfContentEntry(int index, String tocLinkText, String tocLinkFragment) {
160
		assertEquals(tocLinkText, getTableOfContentLinks().get(index).getText());
161
		String expectedHref = getDrupalPagePath() + "#" + tocLinkFragment;
162
		assertTrue("Expecting the toc link to end with " + expectedHref,  getTableOfContentLinks().get(index).getUrl().toString().endsWith(expectedHref));
163
	}
164

  
151 165
}

Also available in: Unified diff