Project

General

Profile

« Previous | Next » 

Revision 8e677507

Added by Andreas Kohlbecker over 3 years ago

ref #8543 improving zen_dataportal theme detection

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Cichorieae_SearchTest.java
25 25
import eu.etaxonomy.dataportal.pages.GenericPortalPage;
26 26
import eu.etaxonomy.dataportal.pages.PortalPage;
27 27
import eu.etaxonomy.dataportal.pages.TaxonSearchResultPage;
28
import eu.etaxonomy.dataportal.selenium.UrlLoaded;
29 28
import eu.etaxonomy.dataportal.selenium.VisibilityOfElementLocated;
30 29
import junit.framework.Assert;
31 30

  
......
89 88
        GalleryImage firstImage = galleryImageRows.get(0).get(0);
90 89
        assertNull("caption should be off", firstImage.getCaptionText());
91 90
        if(searchResultPage.isZenTheme()) {
92
            searchResultPage.clickLink(firstImage.getImageLink(), new UrlLoaded("http://media.bgbm.org/erez/erez?src=EditWP6/photos/Lactuca_triquetra_Bc_01.JPG"), null);
91
            firstImage.getImageLink().getUrl().equals("http://media.bgbm.org/erez/erez?src=EditWP6/photos/Lactuca_triquetra_Bc_01.JPG");
93 92
        } else {
94 93
            searchResultPage.clickLink(firstImage.getImageLink(), new VisibilityOfElementLocated(By.id("images")), GenericPortalPage.class);
95 94
        }

Also available in: Unified diff