Project

General

Profile

« Previous | Next » 

Revision 6d0b5bc3

Added by Andreas Kohlbecker over 4 years ago

ref #8304 adapting test cases

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_NamePageTest.java
8 8
 */
9 9
package eu.etaxonomy.dataportal.selenium.tests.cichorieae;
10 10

  
11
import static org.junit.Assert.assertEquals;
12
import static org.junit.Assert.assertNotNull;
13

  
14 11
import java.util.UUID;
15 12

  
16 13
import org.junit.Test;
......
46 43

  
47 44
    @Test
48 45
    public void intybellia_rosea_cass() throws Exception {
49
        GenericPortalPage p = new GenericPortalPage(driver, getContext(), "name/" + intybellia_rosea_cass_Uuid);
50
        assertEquals(getContext().prepareTitle("Crepis purpurea"), p.getTitle());
46
        GenericPortalPage p = new GenericPortalPage(driver, getContext(), "name/" + intybellia_rosea_cass_Uuid + "/null/null/redirect_to_taxon");
47
        assertEquals(getContext().prepareTitle("Crepis purpurea"), driver.getTitle());
51 48
        TaxonSynonymyPage synonymyPage = new TaxonSynonymyPage(driver, getContext());
52 49
        WebElement intybellia_rosea_cass_synonym = synonymyPage.getHeterotypicalGroupSynonym(1, 1);
53 50
        assertNotNull("Synonym 'Intybellia rosea Cass.' should be highlighted", intybellia_rosea_cass_synonym.findElement(By.className("highlite")));
......
56 53

  
57 54
    @Test
58 55
    public void lapsana_zacintha_L() throws Exception {
59
        GenericPortalPage p = new GenericPortalPage(driver, getContext(), "name/" + lapsana_zacintha_Uuid);
60
        assertEquals(getContext().prepareTitle("Crepis zacintha"), p.getTitle());
56
        GenericPortalPage p = new GenericPortalPage(driver, getContext(), "name/" + lapsana_zacintha_Uuid + "/null/null/redirect_to_taxon");
57
        assertEquals(getContext().prepareTitle("Crepis zacintha"), driver.getTitle());
61 58
        TaxonSynonymyPage synonymyPage = new TaxonSynonymyPage(driver, getContext());
62 59

  
63 60
        assertEquals("≡ Lapsana zacintha L., Sp. Pl.: 811. 1753", synonymyPage.getHomotypicalGroupSynonymName(1));
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cyprus/Cyprus_OriginalSourceTest.java
86 86
        assertEquals("Expecting 3 anchor tags in \"Chromosome Numbers\"", 5, linksInFeatureBlock.size());
87 87
        assertEquals("chromosome_numbers", linksInFeatureBlock.get(0).getAttribute("name"));
88 88
        assertTrue(linksInFeatureBlock.get(1).getAttribute("href").endsWith("cdm_dataportal/reference/863b9b1b-6c2a-4066-af90-ea9a3775598c"));
89
        assertTrue(linksInFeatureBlock.get(2).getAttribute("href").endsWith("cdm_dataportal/name/a1dfcc80-2121-46bb-b8b2-c267a9e0725b"));
89
        assertTrue(linksInFeatureBlock.get(2).getAttribute("href").contains("cdm_dataportal/name/a1dfcc80-2121-46bb-b8b2-c267a9e0725b"));
90 90
        assertTrue(linksInFeatureBlock.get(3).getAttribute("href").endsWith("cdm_dataportal/reference/07a97be7-b3fa-4f76-838d-ac7e1e6e9d70"));
91
        assertTrue(linksInFeatureBlock.get(4).getAttribute("href").endsWith("cdm_dataportal/name/a1dfcc80-2121-46bb-b8b2-c267a9e0725b"));
91
        assertTrue(linksInFeatureBlock.get(4).getAttribute("href").contains("cdm_dataportal/name/a1dfcc80-2121-46bb-b8b2-c267a9e0725b"));
92 92
    }
93 93

  
94 94
}

Also available in: Unified diff