Project

General

Profile

« Previous | Next » 

Revision cb80ef0b

Added by Andreas Kohlbecker over 3 years ago

ref #4372 PortalPage detects zenTheme and adapting getPrimaryTabs()

View differences:

src/test/java/eu/etaxonomy/dataportal/selenium/tests/cichorieae/Lactuca_triquetra_TaxonProfileTest.java
186 186
        /* Credits */
187 187
        featureClass = "credits";
188 188
        featureLabel = "Credits";
189
        blockTextFull = featureLabel + "\nChristodoulou C. S. 2009: Images (1 added).\nMakris C. 2009: Images (1 added).";
190
        expectedCssDisplay = "block";
189
        blockTextFull = featureLabel + " Christodoulou C. S. 2009: Images (1 added). Makris C. 2009: Images (1 added).";
190
        if(p.isZenTheme()) {
191
            expectedCssDisplay = "inline";
192
        } else {
193
            // old garland theme
194
            expectedCssDisplay = "block";
195
        }
191 196

  
192 197
        p.testTableOfContentEntry(featureId++, featureLabel, featureClass);
193 198
        featureBlock = p.getFeatureBlockAt(featureId, featureClass, "div", "span");
194 199

  
195
        assertEquals(blockTextFull, featureBlock.getText());
200
        assertEquals(blockTextFull, featureBlock.getText().replaceAll("\\n", " "));
196 201
        featureBlock.testDescriptionElementLayout(0, indent, descriptionElementFontSize, expectedCssDisplay, expectedListStyleType, expectedListStylePosition, expectedListStyleImage);
197 202
        assertEquals(0, featureBlock.getOriginalSourcesSections().size());
198 203
        assertEquals("Expecting no FootnoteKeys", 0, featureBlock.countFootNoteKeys());

Also available in: Unified diff