1
0
mirror of https://github.com/django/django.git synced 2025-10-29 16:46:11 +00:00

Fixed #34619 -- Associated FilteredSelectMultiple elements to their label and help text.

This commit is contained in:
GappleBee
2024-10-24 19:44:31 +01:00
committed by Sarah Boyce
parent f60d5e46e1
commit 857b1048d5
9 changed files with 168 additions and 108 deletions

View File

@@ -162,7 +162,7 @@ class SeleniumTests(AdminSeleniumTestCase):
# Move the new value to the from box.
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_to']/option").click()
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_remove_link']").click()
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_remove']").click()
self.assertHTMLEqual(
m2m_box.get_attribute("innerHTML"),
@@ -172,7 +172,7 @@ class SeleniumTests(AdminSeleniumTestCase):
# Move the new value to the to box.
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_from']/option").click()
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_add_link']").click()
self.selenium.find_element(By.XPATH, "//*[@id='id_m2m_add']").click()
self.assertHTMLEqual(m2m_box.get_attribute("innerHTML"), "")
self.assertHTMLEqual(