I'm running PF 4.0 with MyFaces 2.1.12 on a JBoss 7.2.0.
In my Selenium web tests I usually want to wait until my Ajax requests complete before making assertions. For this, I've been using the waitUntilAjaxRequestCompletes from the PF showcase.
This worked fine on 3.5, but after the upgrade to 4.0 waitUntilAjaxRequestCompletes returns immediately, causing my tests to fail.
Looking at the function I figured it's using $.active to figure if any requests are still running. To look at this value, I ran the following from my chromium and Firefox console:
Code: Select all
setInterval(
function(){
console.log($.active)
},
2
)
On PF3.5, the setInterval outputs some 1's into my console
On PF4.0, the setInterval outputs no 1's at all, which obviously makes the waitUntilAjaxRequestCompletes function return immediately.
Do you have an idea how to get the wait working again? Or is there a different approach, apart from Thread.sleep?
Thanks for your time.