From f2de5f4caba819fad10a78bfec47ae6f29cc2c29 Mon Sep 17 00:00:00 2001 From: Julien Phalip Date: Thu, 23 Feb 2012 08:07:07 +0000 Subject: [PATCH] Added some Selenium tests for the admin's filter_horizontal and filter_vertical widgets. Ref #13614, #15220. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17579 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/tests.py | 22 ++- tests/regressiontests/admin_views/tests.py | 10 +- tests/regressiontests/admin_widgets/models.py | 18 +++ tests/regressiontests/admin_widgets/tests.py | 132 +++++++++++++++++- .../admin_widgets/widgetadmin.py | 7 + 5 files changed, 176 insertions(+), 13 deletions(-) diff --git a/django/contrib/admin/tests.py b/django/contrib/admin/tests.py index efe601e7231..eb04b40d155 100644 --- a/django/contrib/admin/tests.py +++ b/django/contrib/admin/tests.py @@ -73,15 +73,25 @@ class AdminSeleniumWebDriverTestCase(LiveServerTestCase): return self.selenium.execute_script( 'return django.jQuery("%s").css("%s")' % (selector, attribute)) - def select_option(self, selector, value): + def get_select_option(self, selector, value): """ - Helper function to select the