[ https://issues.jboss.org/browse/ARQGRA-331?page=com.atlassian.jira.plugin... ]
Lukáš Fryč commented on ARQGRA-331:
-----------------------------------
The problem is that {{angular.js}} stores a reference to {{XMLHttpRequest}} object when script is loaded:
https://github.com/angular/angular.js/blob/master/src/ng/httpBackend.js#L1
When Graphene rewrites an global {{XMLHttpRequest}} object, it's too late in the process.
----
A solution would be rewriting XHR reference earlier in the process, e.g. there is an idea to drive Graphene's requests through proxy, so that we can change the page source, injecting whatever scripts needed before any other script can touch the page.
> Graphene guards does not work when page stores reference to XMLHttpRequest before Graphene rewrites them
> --------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-331
> URL: https://issues.jboss.org/browse/ARQGRA-331
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Oliver Kišš
> Assignee: Lukáš Fryč
> Fix For: 2.0.0.Alpha5
>
>
> Graphene guards do not work correctly in the [AngularJS Kitchensink quickstart|https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/k...].
> The registration form sends a XHR POST request on submit, but this is not recognized and clicking on the submit button with {{guardAjax(registerButton).click()}} throws an exception: "{{RequestGuardException: Request type 'XHR' was expected, but type 'NONE' was done instead}}".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[ https://issues.jboss.org/browse/ARQGRA-331?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-331:
------------------------------
Summary: Graphene guards does not work when page stores reference to XMLHttpRequest before Graphene rewrites them (was: Graphene guards do not work correctly in AngularJS Quickstart)
> Graphene guards does not work when page stores reference to XMLHttpRequest before Graphene rewrites them
> --------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-331
> URL: https://issues.jboss.org/browse/ARQGRA-331
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Oliver Kišš
> Assignee: Lukáš Fryč
> Fix For: 2.0.0.Alpha5
>
>
> Graphene guards do not work correctly in the [AngularJS Kitchensink quickstart|https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/k...].
> The registration form sends a XHR POST request on submit, but this is not recognized and clicking on the submit button with {{guardAjax(registerButton).click()}} throws an exception: "{{RequestGuardException: Request type 'XHR' was expected, but type 'NONE' was done instead}}".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[ https://issues.jboss.org/browse/ARQGRA-331?page=com.atlassian.jira.plugin... ]
Work on ARQGRA-331 started by Lukáš Fryč.
> Graphene guards do not work correctly in AngularJS Quickstart
> -------------------------------------------------------------
>
> Key: ARQGRA-331
> URL: https://issues.jboss.org/browse/ARQGRA-331
> Project: Arquillian Graphene
> Issue Type: Bug
> Components: core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Oliver Kišš
> Assignee: Lukáš Fryč
> Fix For: 2.0.0.Alpha5
>
>
> Graphene guards do not work correctly in the [AngularJS Kitchensink quickstart|https://github.com/jboss-jdf/jboss-as-quickstart/tree/master/k...].
> The registration form sends a XHR POST request on submit, but this is not recognized and clicking on the submit button with {{guardAjax(registerButton).click()}} throws an exception: "{{RequestGuardException: Request type 'XHR' was expected, but type 'NONE' was done instead}}".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[ https://issues.jboss.org/browse/ARQGRA-328?page=com.atlassian.jira.plugin... ]
Lukáš Fryč updated ARQGRA-328:
------------------------------
Summary: Support @Drone enricher on Graphene page objects/fragments when @Drone is not specified in a test case (was: Support @Drone enricher on Graphene page objects/fragments)
> Support @Drone enricher on Graphene page objects/fragments when @Drone is not specified in a test case
> ------------------------------------------------------------------------------------------------------
>
> Key: ARQGRA-328
> URL: https://issues.jboss.org/browse/ARQGRA-328
> Project: Arquillian Graphene
> Issue Type: Feature Request
> Components: core
> Affects Versions: 2.0.0.Alpha4
> Reporter: Lukáš Fryč
> Priority: Critical
> Fix For: 2.0.0.Beta1
>
>
> Drone's {{TestEnricher}} fails to work in page fragments.
> If I remember correctly, Drone tries to access or initialize context incorrectly (more information have Aslak).
> This issue is related to ARQGRA-191.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Lukáš Fryč created ARQGRA-341:
---------------------------------
Summary: Remove deprecated APIs
Key: ARQGRA-341
URL: https://issues.jboss.org/browse/ARQGRA-341
Project: Arquillian Graphene
Issue Type: Task
Reporter: Lukáš Fryč
Fix For: 2.0.0.Beta1
FindBy, How, Root, Page
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[ https://issues.jboss.org/browse/ARQGRA-339?page=com.atlassian.jira.plugin... ]
Lukáš Fryč resolved ARQGRA-339.
-------------------------------
Resolution: Done
> Deprecate Graphene's FindBy and How classes
> -------------------------------------------
>
> Key: ARQGRA-339
> URL: https://issues.jboss.org/browse/ARQGRA-339
> Project: Arquillian Graphene
> Issue Type: Task
> Reporter: Lukáš Fryč
> Assignee: Lukáš Fryč
> Fix For: 2.0.0.Alpha5
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira