summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authorantoliny0919 <antoliny0919@gmail.com>2025-08-16 10:23:13 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-08-26 13:45:28 +0200
commit3e7aedfb2eb37d0c83ce3ce936f1b89eb5451dfa (patch)
treed6cbb6213a7afbf52ab1db2ada86dbfeae7aa611 /tests/admin_inlines
parent9efce80ca7daccbcf315a81b250f5dc8b6d453a1 (diff)
Fixed #36556 -- Fixed TabularInline width overflowing the page.
Diffstat (limited to 'tests/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index e73f4fda6e..7734c27873 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -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):