Project

General

Profile

« Previous | Next » 

Revision b9a4f351

Added by Andreas Kohlbecker about 7 years ago

ref #6392 problems in selenium tests for palmweb solved

  • disabled test active again
  • splitting huge test method into multiple
  • trimming reference citation strings in theme method
  • replacing old custom reference ciatation string by generically string as provided by the cdm

View differences:

src/main/java/eu/etaxonomy/dataportal/elements/LinkElement.java
10 10
package eu.etaxonomy.dataportal.elements;
11 11

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

  
14 15
import org.openqa.selenium.WebElement;
15 16

  
......
55 56
		return testIfLinkElement(element.getElement(), text, href);
56 57
	}
57 58

  
58
	public static boolean testIfLinkElement(WebElement element, String text, String href) {
59
	/**
60
	 * @param element
61
	 * @param text
62
	 * @param hrefEndsWith
63
	 *   The actual link is must end with this. The full URL works of course also.
64
	 * @return
65
	 */
66
	public static boolean testIfLinkElement(WebElement element, String text, String hrefEndsWith) {
59 67
		assertEquals("a", element.getTagName());
60
		assertEquals(href, element.getAttribute("href"));
68
		assertTrue(element.getAttribute("href").endsWith(hrefEndsWith));
61 69
		assertEquals(text, element.getText());
62 70
		return true;
63 71
	}

Also available in: Unified diff