Project

General

Profile

« Previous | Next » 

Revision d8f8977e

Added by Andreas Kohlbecker over 2 years ago

better testing for loaded aha content

View differences:

src/main/java/eu/etaxonomy/dataportal/ElementUtils.java
88 88
                if(captionCells != null && captionCells.size() > cellId){
89 89
                    captionCell = captionCells.get(cellId);
90 90
                    wait.until(new AllTrue(
91
                            new ChildElementVisible(imageCell, By.tagName("img")),
92
                            new ChildElementVisible(captionCell, By.tagName("dl"))
91
                        // image must be visible
92
                        new ChildElementVisible(imageCell, By.tagName("img")),
93
                        // metadata should be loaded but may be empty, therefore we are tesing
94
                        // for the existence of the element attribute data-cdm-ahah-url-loaded
95
                        // in the <div class="ahah-content" ...
96
                        new ChildElementVisible(captionCell, By.xpath("div[@data-cdm-ahah-url-loaded]"))
93 97
                    ));
94 98

  
95 99
                } else {

Also available in: Unified diff