[arquillian-issues] [JBoss JIRA] (ARQGRA-479) Propagate xhr.response values in wrapper callback

Lukáš Fryč (JIRA) issues at jboss.org
Tue Sep 29 02:03:00 EDT 2015


Lukáš Fryč created ARQGRA-479:
---------------------------------

             Summary: Propagate xhr.response values in wrapper callback
                 Key: ARQGRA-479
                 URL: https://issues.jboss.org/browse/ARQGRA-479
             Project: Arquillian Graphene
          Issue Type: Bug
            Reporter: Lukáš Fryč
            Assignee: Lukáš Fryč
             Fix For: 2.0-Tracking, 2.1-Tracking


When the xhr wrapper is created the response property is copied but it isn't updated in the callback, which leads to the property values' being out of sync. Some frameworks (e.g. Angular) will use the xhr.response over xhr.responseText if it is present, which means that simply using a guardAjax in a Graphene test will cause all subsequent xhr calls to return invalid data. In my case (Firefox 38, Angular 1.4.4, Graphene 2.0.3.Final) all $http calls would return "" once a guardAjax was executed, despite valid data being shown in Firefox's request log.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the arquillian-issues mailing list