Opened 11 years ago

Closed 11 years ago

#20721 closed Bug (fixed)

HorizontalVerticalFilterSeleniumChromeTests.test_basic test failure

Reported by: Tim Graham Owned by: nobody
Component: Testing framework Version: 1.5
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Using selenium 2.33.0, Chrome 28.0.1500.71 and chromedriver_linux64_2.1.zip (ChromeDriver server for linux64 (v2.1.210060.dyu) supports Chrome v27-30):

./runtests.py --settings=test_sqlit admin_widgets.tests.HorizontalVerticalFilterSeleniumChromeTests.test_basic

======================================================================
FAIL: test_basic (admin_widgets.tests.HorizontalVerticalFilterSeleniumChromeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tim/code/django/tests/admin_widgets/tests.py", line 664, in test_basic
    self.execute_basic_operations('vertical', 'students')
  File "/home/tim/code/django/tests/admin_widgets/tests.py", line 617, in execute_basic_operations
    self.assertActiveButtons(mode, field_name, True, False, True, False)
  File "/home/tim/code/django/tests/admin_widgets/tests.py", line 555, in assertActiveButtons
    self.assertEqual(self.has_css_class(choose_link, 'active'), choose)
AssertionError: False != True

This is testing if selecting options in the horizontal and vertical filter widgets enables the add/remove buttons to move the options from one select to the other. In debugging the test, I see the options are selected, but the button is not enabled (hence the test failure). However, manually clicking the options as opposed to having selenium "click" them, does enable the button, so it may be a bug with the Chrome/Selenium interaction.

This is reproducible on master/1.5/1.4 (which is all I tested).

Change History (2)

comment:1 by loic84, 11 years ago

Triage Stage: UnreviewedAccepted

I can reproduce on Chrome 27.0.1453.116 running on OSX 10.8.4.

comment:2 by Tim Graham, 11 years ago

Resolution: fixed
Status: newclosed

Working with the latest version of Chrome and the driver.

Note: See TracTickets for help on using tickets.
Back to Top