mirror of
https://github.com/django/django.git
synced 2025-11-24 21:00:12 +00:00
Fixed #36556 -- Fixed TabularInline width overflowing the page.
This commit is contained in:
parent
9efce80ca7
commit
3e7aedfb2e
3 changed files with 18 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue