Bug 1006251

Summary: javascript seems to not work as expected
Product: [Fedora] Fedora Reporter: Michał Piotrowski <mkkp4x4>
Component: htmlunitAssignee: gil cattaneo <puntogil>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: puntogil
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 10:54:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michał Piotrowski 2013-09-10 10:17:22 UTC
Description of problem:
I'm working on a project that uses htmlunit browser in behat tests (unfortunately I can not provide sample code that would help to repeat the problem). Here is a behat scenario that works fine on travis-ci.com and other developers Windows machines but fails on my local Fedora 19 installation

    When I fill in the following:
      | Product Quantity  | 1        |
      | Expected delivery | days-30  |
      | Product condition | like_new |
      | Resale option     | none     |
    And I press "Add"
    And I wait for 5 sec
    And I open cart
    And cart should contain 1 item
    And in cart should be item "FarCry" with quantity "1" and resale "none"

    When I fill in the following:
      | Product Quantity | 2 |
    And I press "Add"
    And I wait for 5 sec
    And cart should contain 1 item
    And in cart should be item "FarCry" with quantity "3" and resale "none"


If I change last line in a scenario to
And in cart should be item "FarCry" with quantity "1" and resale "none"
it works fine.

Basing on this I suspect that some part of javascript support in Fedora 19 htmlunit is broken. Some other javascript tests runs fine - for example if tests clicks css selector.

I've got installed:
htmlunit-2.9-5.fc19.noarch
htmlunit-core-js-2.9-4.fc19.noarch

Is there anything that can be done to get better javascript support in htmlunit browser?

Best regards,
Michal

Comment 1 gil cattaneo 2013-09-10 18:22:42 UTC
which version use on other OS?
for newer release should fix before this [1]
there are too many problems reported here[2] related at java7
regards


[1] https://bugzilla.redhat.com/show_bug.cgi?id=895429 , https://bugzilla.redhat.com/show_bug.cgi?id=1006510

[2] http://sourceforge.net/p/htmlunit/bugs/

Comment 2 Michał Piotrowski 2013-09-11 10:54:21 UTC
It seems that problem is not related to htmlunit browser from OS. I removed it and some javascript tests works fine. I guess that htmlunit is shipped in selenium. So this problem is not related to Fedora.

Best regards,
Michal