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:
Miftahul 2025-10-11 17:03:55 +06:00
parent 0609b975de
commit 10f8089ee4
3 changed files with 9 additions and 22 deletions

View file

@ -287,9 +287,6 @@ input[type="submit"], button {
flex: 0 1 auto;
}
.stacked select {
margin-bottom: 0;
}
.stacked .selector-available, .stacked .selector-chosen {
width: auto;

View file

@ -235,9 +235,9 @@
padding: 3px 3px 3px 5px;
}
.stacked .selector-chooseall, .stacked .selector-clearall {
/* .stacked .selector-chooseall, .stacked .selector-clearall {
display: block;
}
} */
.stacked .selector-add {
background: url(../img/selector-icons.svg) 0 -48px no-repeat;

View file

@ -1297,13 +1297,12 @@ class HorizontalVerticalFilterSeleniumTests(AdminWidgetSeleniumTestCase):
remove_all_button = "#id_%s_remove_all" % field_name
self.assertEqual(self.is_disabled(choose_button), choose_btn_disabled)
self.assertEqual(self.is_disabled(remove_button), remove_btn_disabled)
if mode == "horizontal":
self.assertEqual(
self.is_disabled(choose_all_button), choose_all_btn_disabled
)
self.assertEqual(
self.is_disabled(remove_all_button), remove_all_btn_disabled
)
self.assertEqual(
self.is_disabled(choose_all_button), choose_all_btn_disabled
)
self.assertEqual(
self.is_disabled(remove_all_button), remove_all_btn_disabled
)
def execute_basic_operations(self, mode, field_name):
from selenium.webdriver.common.by import By
@ -1374,16 +1373,7 @@ class HorizontalVerticalFilterSeleniumTests(AdminWidgetSeleniumTestCase):
)
# Click 'Remove all' --------------------------------------------------
if mode == "horizontal":
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.selenium.find_element(By.ID, remove_all_button).click()
self.assertSelectOptions(
from_box,
[