[richfaces-planning-issues] [JBoss JIRA] (RFPL-3439) InplaceSelect test fails due to Selenium bug

Matej Novotny (JIRA) issues at jboss.org
Wed Sep 10 03:37:20 EDT 2014


     [ https://issues.jboss.org/browse/RFPL-3439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matej Novotny resolved RFPL-3439.
---------------------------------
    Resolution: Done


Most of the inplaceSelect tests were affected by this bug at least all the tests using select method from fragment which did not invoke onchange event on page.

There is a workaround I implemented for InplaceSelect page fragment.
Adding a focus() to inputText while selecting an option does the trick for Firefox (and keeps working in Chrome) - [link to fragment|https://github.com/richfaces/richfaces/blob/470549cad4d3468b7c2f7ff9431e21dbafcc0fac/build/page-fragments/src/main/java/org/richfaces/fragment/inplaceSelect/RichFacesInplaceSelect.java#L107].

All tests are now running and should not fail because of this any more.

> InplaceSelect test fails due to Selenium bug
> --------------------------------------------
>
>                 Key: RFPL-3439
>                 URL: https://issues.jboss.org/browse/RFPL-3439
>             Project: RichFaces Planning
>          Issue Type: Bug
>    Affects Versions: 4.5.0.Beta1
>         Environment: FF 24ESR or later
> Wildfly 8.1
>            Reporter: Matej Novotny
>
> Due to a known [Selenium bug|https://code.google.com/p/selenium/issues/detail?id=7130], there are test failures in FF (tried with versions 24ESR and 31).
> When you choose an element in inplaceSelect with {{elem.click()}} the element is selected but no event is triggered - like onchange or onblur for instance. Therefore output field doesn't get updated and select stays in 'active' state all the time.
> I couldn't figure out a workaround (expect firing the event with JS, which makes the test useless), so I am marking the tests as {{group=Future}} unless the bug is fixed or another workaround found.
> List of affected test methods:
> * TestInplaceSelectAttributes#testClick
> * TestInplaceSelectAttributes#testChangedClass
> * TestInplaceSelectAttributes#testActiveClass
> I will check other tests for inplaceSelect as well as rich:select tests which might have similar problems.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the richfaces-planning-issues mailing list