benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

ContainerFixture.comboBox().select() fails to close comboBox *sometimes* #173

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From fred76131:

Since the update to fest-swing 1.0a3 we are having a problem with a
test failing (succeeding before) because a call to selectItem() on a
JComboBoxFixture fails to close the comboBox after highliting the
item.

The combo box is opened, the desired item is found and therefore
highlighted and then the combo box is just left open when the FEST
call to selectItem() returns.
The next calls to FEST perform a click on a JButton which -- obviously
-- closes the combo box, but leaving it with no  selected item (which
makes the test fail, since it expects some item to be selected.)

What is really strange about this is that this does not happen any
more when we change one of the following things:

- selecting a different combo box item (any item but the second one in
a list of approx. 100 item will do here)

- changing just the sequence of FEST calls. Placing the call before
another call to selectItem (for a different combo box) makes
everything work fine.

This definitely did not happen with fest-swing 1.0a1.

Original issue reported on code.google.com by Alex.Rui...@gmail.com on 14 Jul 2008 at 2:03

GoogleCodeExporter commented 9 years ago
Although I was unable to reproduce the bug, I modified the methods 'selectItem' 
in
JComboBoxDriver to ensure the drop-down list in a  JComboBox is hidden after a
selection has been made.

Original comment by Alex.Rui...@gmail.com on 16 Jul 2008 at 4:10

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 2:07