mirror of
https://github.com/django/django.git
synced 2025-10-30 17:16:10 +00:00
Fixed #36556 -- Fixed TabularInline width overflowing the page.
This commit is contained in:
committed by
Sarah Boyce
parent
9efce80ca7
commit
3e7aedfb2e
@@ -2501,6 +2501,16 @@ class SeleniumTests(AdminSeleniumTestCase):
|
||||
tabular_inline.find_elements(By.CSS_SELECTOR, ".collapse"),
|
||||
[],
|
||||
)
|
||||
# The table does not overflow the content section.
|
||||
content = self.selenium.find_element(By.ID, "content-main")
|
||||
tabular_wrapper = self.selenium.find_element(
|
||||
By.CSS_SELECTOR, "div.tabular.inline-related div.wrapper"
|
||||
)
|
||||
self.assertGreater(
|
||||
tabular_wrapper.find_element(By.TAG_NAME, "table").size["width"],
|
||||
tabular_wrapper.size["width"],
|
||||
)
|
||||
self.assertLessEqual(tabular_wrapper.size["width"], content.size["width"])
|
||||
|
||||
@screenshot_cases(["desktop_size", "mobile_size", "rtl", "dark", "high_contrast"])
|
||||
def test_tabular_inline_delete_layout(self):
|
||||
|
||||
Reference in New Issue
Block a user