Project

General

Profile

« Previous | Next » 

Revision 678da343

Added by Andreas Kohlbecker almost 3 years ago

ref #9642 adapting test method to more media appearing in the derivate path view

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTopDownViewTest.java
51 51
    public void test1() throws MalformedURLException {
52 52
        TaxonPage p = new TaxonPage(driver, getContext(), glenodinium_apiculatum_t, "specimens");
53 53
        WebElement specimensTable = p.getDataPortalContent().getElement().findElement(By.cssSelector("#specimens table.specimens"));
54
        List<WebElement> rows = specimensTable.findElements(By.tagName("tr"));
54
        List<WebElement> rows = specimensTable.findElements(By.xpath("./tbody/tr"));
55 55
        assertEquals(4, rows.size());
56
        assertEquals("Epitype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047; D. Veloper (CEDiT 2017E68).", rows.get(0).getText());
57
        assertEquals("Isolectotype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047 (M M-0289351).", rows.get(1).getText());
56
        assertEquals("Epitype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047; D. Veloper (CEDiT 2017E68).\nopen media", rows.get(0).getText());
57
        assertEquals("Isolectotype: Germany, Berlin, alt. 165 m, 52°31'1.2\"N, 13°21'E (WGS84), 28 Mar 2016, Ehrenberg D047 (M M-0289351).\nopen media", rows.get(1).getText());
58 58
        assertEquals("Lectotype: Germany, Berlin, 2 Apr 1835 (BHUPM 671).", rows.get(2).getText());
59 59

  
60 60
        Dynabox dynabox1 = new Dynabox(rows.get(0).findElement(By.className("dynabox")), driver);

Also available in: Unified diff