Project

General

Profile

« Previous | Next » 

Revision 6d0b5bc3

Added by Andreas Kohlbecker almost 5 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));

Also available in: Unified diff