Simpletest-light doesn't handle selects with <optgroup>'s correctly
cwgordon7 - April 14, 2008 - 00:45
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | simpletest.module |
| Category: | bug report |
| Priority: | critical |
| Assigned: | pwolanin |
| Status: | closed |
Description
This was a show-stopper for the actions-triggers test case. Chx's new browser doesn't seem to handle sub-selects properly (e.g. with <optgroup>) properly.

#1
We talked about this in IRC and I will take a look at it shortly, if time allows.
#2
This patch appears to fix the issue of options nested inside of optgroup tag.
However, it doesn't appear to fix the issues you were having with the trigger test and the database. You should probably open a separate issue for that.
#3
Committed.
#4
Automatically closed -- issue fixed for two weeks with no activity.
#5
This fix may not have made it into core.
#6
I came across this while trying to write this test: http://drupal.org/node/276583
A version of the patch above is in Drupal HEAD, but it doesn't seem to work correctly. Seems we need another level of looping to actually find all the options in the optgroup.
#7
Peter's patch indeed fixes the test at #276583: TestingParty08: Tests for admin/user/user filters. This is holding up other tests from the Test party, so I mark it critical. Lets quickly fix bugs in core simpletest. Kinda demotivates/confuses test authors.
#8
Committed to CVS HEAD. Thanks.
#9
Automatically closed -- issue fixed for two weeks with no activity.