The timeline.gsp file specifies a class but the geb test is looking for a div id, instead of a class reference. TimelinePage.groovy: static at = { $("title").text().contains("Timeline for") $("#allPosts") <-- div id selector } timeline.gsp:
<-- div class
${post.content}
/g:each
The test will pass if you change TimelinePage.groovy to use a div class selector: static at = { $("title").text().contains("Timeline for") //$("#allPosts") $("div.allPosts") <--- div class selector }
Delete me. This is a duplicate.
The timeline.gsp file specifies a class but the geb test is looking for a div id, instead of a class reference. TimelinePage.groovy: static at = { $("title").text().contains("Timeline for") $("#allPosts") <-- div id selector } timeline.gsp: <-- div class
${post.content}
/g:each The test will pass if you change TimelinePage.groovy to use a div class selector: static at = { $("title").text().contains("Timeline for") //$("#allPosts") $("div.allPosts") <--- div class selector }