#3014 Change in combobox leading to UI test automation failures
Closed: Fixed None Opened 11 years ago by nkrishnan.

Using dropdown to select from the list causes failures in UI test automation.
Sahi is not recognizing a click in the dropdown (I think)

Not sure when exactly it started to fail - but was most likely working with 0730 build.

Email exchanges for reference:
On 08/20/2012 07:54 PM, Namita Krishnan wrote:

Hi Petr,

Like I described the issue in irc earlier today:
I can dropdown the host, but cannot pick a host - when adding a service.
Similarly, I can dropdown a dnszone, but cannot pick a zone - when adding a host
The above works well - when doing it manually - but Sahi cannot pick from the dropdown list

You said - "I went through changes since april and the one which can effect combobox_widget is 7a2587e It removes click handler from internal select's option. The widget uses 'change' and 'click' event of the select itself."

The above change was for https://fedorahosted.org/freeipa/ticket/2834.

This is leading to failures in test automation, using Sahi. I tried to update the scripts to use your changes, but haven't been able to do so. Sahi is not picking up a click on the drop down.

https://fedorahosted.org/freeipa/ticket/1754 has a description of why combobox was set up the way it was earlier (probably a little bit of related history).

Is there any way you can change it back to what it used to be, or address the bug keeping the combobox the way it was?

Thanks,
Namita

I don't believe that moving of the click handler in #2834 from 'option'
element to 'select' element can cause this test failure. Important event
for selecting a value is 'change' and its registration wasn't changed
since #2070 (02/29/12). The click event serves only for fixing #2070. If
this move is really the cause, I can move it back though.

Also in #2834 we also raised z-index of div element which contains the
combobox'es list to a really high value. Not sure if it can affect SAHI.

Do you know which most recent build was functional? Maybe it is not
caused by #2834.

https://fedorahosted.org/freeipa/ticket/2070
https://fedorahosted.org/freeipa/ticket/2834
--
Petr Vobornik


- master: 36c345dd1d321149e21157b31832f55f11f44a18
- ipa-3-0: 2c643ce6bb940e2be84d5795c665280182a7c35d

Moving closed RC1 tickets to Beta 3.

Metadata Update from @nkrishnan:
- Issue assigned to pvoborni
- Issue set to the milestone: FreeIPA 3.0 Beta 3

7 years ago

Login to comment on this ticket.

Metadata