Project

General

Profile

Revision f02e26e1

IDf02e26e184836a70c7a0ff49487bfb30b25f371e
Parent 6679207a
Child 46a93d1e

Added by Andreas Kohlbecker about 2 months ago

adapting remainig tests to new date formating

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTopDownViewTest.java
53 53
        WebElement specimensTable = p.getDataPortalContent().getElement().findElement(By.cssSelector("#specimens table.specimens"));
54 54
        List<WebElement> rows = specimensTable.findElements(By.tagName("tr"));
55 55
        assertEquals(3, rows.size());
56
        assertEquals("Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (CEDiT 2017E68).", rows.get(0).getText());
57
        assertEquals("Isolectotype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047 (M M-0289351).", rows.get(1).getText());
56
        assertEquals("Epitype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28 Mar 2016, D047 (CEDiT 2017E68).", rows.get(0).getText());
57
        assertEquals("Isolectotype: Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28 Mar 2016, D047 (M M-0289351).", rows.get(1).getText());
58 58
        assertEquals("Lectotype: -title cache generation not implemented-", rows.get(2).getText());
59 59

  
60 60
        Dynabox dynabox1 = new Dynabox(rows.get(0).findElement(By.className("dynabox")), driver);
src/test/java/eu/etaxonomy/dataportal/selenium/tests/reference/SpecimensTreeViewTest.java
60 60
        List<WebElement> summaryRows = specimensTable.findElements(By.cssSelector("tr.summary_row"));
61 61
        List<WebElement> detailRows = specimensTable.findElements(By.cssSelector("tr.detail_row"));
62 62
        assertEquals(3, summaryRows.size());
63
        assertEquals("Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047.", summaryRows.get(0).getText());
64
        assertEquals("Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047.", summaryRows.get(1).getText());
65
        assertEquals("Germany, Berlin, 2.4.1835.", summaryRows.get(2).getText());
63
        assertEquals("Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28 Mar 2016, D047.", summaryRows.get(0).getText());
64
        assertEquals("Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28 Mar 2016, D047.", summaryRows.get(1).getText());
65
        assertEquals("Germany, Berlin, 2 Apr 1835.", summaryRows.get(2).getText());
66 66

  
67 67

  
68 68
        // Germany, Berlin, 52°31'1.2\"N, 13°21'E, 28.3.2016, D047.

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)