]
Lukáš Fryč updated ARQGRA-441:
------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
xhrInterception breaks applications using jQuery 2.x
----------------------------------------------------
Key: ARQGRA-441
URL:
https://issues.jboss.org/browse/ARQGRA-441
Project: Arquillian Graphene
Issue Type: Bug
Affects Versions: 2.0.0.Final, 2.0.2.Final
Environment: Firefox 29, Chrome 34
Reporter: Oliver Kišš
Assignee: Oliver Kišš
Priority: Critical
Fix For: 2.0.3.Final
After
{{[kitchensink-backbone|https://github.com/jboss-developer/jboss-wfk-quickstarts/tree/2.6.x-develop/kitchensink-backbone]}}
and
{{[contacts-mobile-basic|https://github.com/jboss-developer/jboss-wfk-quickstarts/pull/154]}}
quickstarts were updated to use jQuery 2.0.3, Graphene guards no longer work properly in
their functional tests.
After {{window.Graphene.xhrInterception.install()}}, the quickstarts do not react to
responses to ajax requests they make (server side validation messages are not shown,
member list is not displayed, no feedback is shown after a new member is registered).
When {{window.Graphene.xhrInterception.uninstall()}} is run, the quickstarts start
behaving normally again.
I tried reproducing the issue with different versions of javascript libraries used in the
quickstarts and could reproduce it if jQuery 2.x was used (tested 2.0.3 and 2.1.0). Other
libraries do not seem to have an effect on the issue.