diff options
| author | Devin Cox <dcox@surefyre.co> | 2024-06-12 11:35:12 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-06-12 13:09:04 +0200 |
| commit | 719a42b589d7551fc84708044b9e984ce723c8a2 (patch) | |
| tree | 0815e07fa362a74d90cffcf49b8061e2a1d2273c /tests/admin_views | |
| parent | f812b927a541fecc8ee445e1fd4dbe9d0540d523 (diff) | |
Fixed #34789 -- Prevented updateRelatedSelectsOptions from
adding entries to filter_horizontal chosen box.
Co-authored-by: yokeshwaran1 <yokesh440@yahoo.com>
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/test_related_object_lookups.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_views/test_related_object_lookups.py b/tests/admin_views/test_related_object_lookups.py index c10a5568d5..761819a50f 100644 --- a/tests/admin_views/test_related_object_lookups.py +++ b/tests/admin_views/test_related_object_lookups.py @@ -110,6 +110,9 @@ class SeleniumTests(AdminSeleniumTestCase): <option value="1" selected>{interesting_name}</option> """, ) + # Check the newly added instance is not also added in the "to" box. + m2m_to = self.selenium.find_element(By.ID, "id_m2m_to") + self.assertHTMLEqual(m2m_to.get_attribute("innerHTML"), "") m2m_box = self.selenium.find_element(By.ID, "id_m2m_from") self.assertHTMLEqual( m2m_box.get_attribute("innerHTML"), |
