summaryrefslogtreecommitdiff
path: root/tests/admin_inlines/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_inlines/tests.py')
-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):