Project

General

Profile

« Previous | Next » 

Revision eea102b4

Added by Andreas Kohlbecker over 2 years ago

ref #4372 theme dependend font size in test and fixing bug in media gallery cell extraction

View differences:

src/main/java/eu/etaxonomy/dataportal/ElementUtils.java
72 72
        for(int rowId = 0; rowId < mediaRows.size(); rowId++ ){
73 73
            logger.debug("GalleryImages - gallery row " + rowId );
74 74
            List<WebElement> imageCells = mediaRows.get(rowId).findElements(By.tagName("td"));
75
            List<WebElement> captionCells = captionRows.get(rowId).findElements(By.tagName("td"));;
76
            logger.debug("GalleryImages - image cells: " + imageCells.size() + " caption cells "+ captionCells.size());
77

  
75
            List<WebElement> captionCells = null;
76
            if(rowId < captionRows.size()) {
77
                captionCells = captionRows.get(rowId).findElements(By.tagName("td"));
78
                logger.debug("GalleryImages - image cells: " + imageCells.size() + " caption cells "+ captionCells.size());
79
            }
78 80
            galleryImageRows.add(new ArrayList<GalleryImage>());
79 81

  
80 82
            // loop table cells in row
src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Lactuca_triquetra_TaxonProfileTest.java
86 86
        FeatureBlock featureBlock;
87 87
        int featureId = 0;
88 88

  
89
        int descriptionElementFontSize = 14;
89
        int descriptionElementFontSize = p.isZenTheme() ? 14 : 12;
90 90
        String expectedCssDisplay = "inline";
91 91
        String expectedListStyleType = "none";
92 92
        String expectedListStylePosition = "outside";

Also available in: Unified diff