mirror of
https://github.com/django/django.git
synced 2025-11-22 20:16:24 +00:00
Fixed the margin issue. The disabled check test was updated for both vertical and horizontal modes. Removed the display:block section as well.
This commit is contained in:
parent
0609b975de
commit
10f8089ee4
3 changed files with 9 additions and 22 deletions
|
|
@ -287,9 +287,6 @@ input[type="submit"], button {
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stacked select {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stacked .selector-available, .stacked .selector-chosen {
|
.stacked .selector-available, .stacked .selector-chosen {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
|
||||||
|
|
@ -235,9 +235,9 @@
|
||||||
padding: 3px 3px 3px 5px;
|
padding: 3px 3px 3px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stacked .selector-chooseall, .stacked .selector-clearall {
|
/* .stacked .selector-chooseall, .stacked .selector-clearall {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
} */
|
||||||
|
|
||||||
.stacked .selector-add {
|
.stacked .selector-add {
|
||||||
background: url(../img/selector-icons.svg) 0 -48px no-repeat;
|
background: url(../img/selector-icons.svg) 0 -48px no-repeat;
|
||||||
|
|
|
||||||
|
|
@ -1297,13 +1297,12 @@ class HorizontalVerticalFilterSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||||
remove_all_button = "#id_%s_remove_all" % field_name
|
remove_all_button = "#id_%s_remove_all" % field_name
|
||||||
self.assertEqual(self.is_disabled(choose_button), choose_btn_disabled)
|
self.assertEqual(self.is_disabled(choose_button), choose_btn_disabled)
|
||||||
self.assertEqual(self.is_disabled(remove_button), remove_btn_disabled)
|
self.assertEqual(self.is_disabled(remove_button), remove_btn_disabled)
|
||||||
if mode == "horizontal":
|
self.assertEqual(
|
||||||
self.assertEqual(
|
self.is_disabled(choose_all_button), choose_all_btn_disabled
|
||||||
self.is_disabled(choose_all_button), choose_all_btn_disabled
|
)
|
||||||
)
|
self.assertEqual(
|
||||||
self.assertEqual(
|
self.is_disabled(remove_all_button), remove_all_btn_disabled
|
||||||
self.is_disabled(remove_all_button), remove_all_btn_disabled
|
)
|
||||||
)
|
|
||||||
|
|
||||||
def execute_basic_operations(self, mode, field_name):
|
def execute_basic_operations(self, mode, field_name):
|
||||||
from selenium.webdriver.common.by import By
|
from selenium.webdriver.common.by import By
|
||||||
|
|
@ -1374,16 +1373,7 @@ class HorizontalVerticalFilterSeleniumTests(AdminWidgetSeleniumTestCase):
|
||||||
)
|
)
|
||||||
|
|
||||||
# Click 'Remove all' --------------------------------------------------
|
# Click 'Remove all' --------------------------------------------------
|
||||||
if mode == "horizontal":
|
self.selenium.find_element(By.ID, remove_all_button).click()
|
||||||
self.selenium.find_element(By.ID, remove_all_button).click()
|
|
||||||
elif mode == "vertical":
|
|
||||||
# There 's no 'Remove all' button in vertical mode, so individually
|
|
||||||
# select all options and click 'Remove'.
|
|
||||||
for option in self.selenium.find_elements(
|
|
||||||
By.CSS_SELECTOR, to_box + " > option"
|
|
||||||
):
|
|
||||||
option.click()
|
|
||||||
self.selenium.find_element(By.ID, remove_button).click()
|
|
||||||
self.assertSelectOptions(
|
self.assertSelectOptions(
|
||||||
from_box,
|
from_box,
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue