[Django] #37182: non-existent DOM properties used in skip link to content selenium test

4 views
Skip to first unread message

Django

unread,
Jun 22, 2026, 11:26:25 AM (2 days ago) Jun 22
to django-...@googlegroups.com
#37182: non-existent DOM properties used in skip link to content selenium test
-------------------------------------+-------------------------------------
Reporter: Varun | Owner: Varun Kasyap
Kasyap Pentamaraju | Pentamaraju
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: dev
contrib.admin |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
in
admin_views.test_skip_link_to_content.PlaywrightTests.test_skip_link_with_RTL_language_doesnt_create_horizontal_scrolling

horizontal scroll check uses non-existent DOM properties (scrollWeight /
offsetWeight) instead of scrollWidth / offsetWidth.


{{{
is_vertical_scrolleable = self.selenium.execute_script(
"return arguments[0].scrollHeight >
arguments[0].offsetHeight;", body
)
is_horizontal_scrolleable = self.selenium.execute_script(
"return arguments[0].scrollWeight >
arguments[0].offsetWeight;", body
)
self.assertTrue(is_vertical_scrolleable)
self.assertFalse(is_horizontal_scrolleable)
}}}

undefined > undefined is always false. so, assertFalse always passes
--
Ticket URL: <https://code.djangoproject.com/ticket/37182>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 22, 2026, 11:44:57 AM (2 days ago) Jun 22
to django-...@googlegroups.com
#37182: non-existent DOM properties used in skip link to content selenium test
-------------------------------------+-------------------------------------
Reporter: Varun Kasyap | Owner: Varun
Pentamaraju | Kasyap Pentamaraju
Type: | Status: assigned
Cleanup/optimization |
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* stage: Unreviewed => Accepted

--
Ticket URL: <https://code.djangoproject.com/ticket/37182#comment:1>

Django

unread,
Jun 22, 2026, 12:16:47 PM (2 days ago) Jun 22
to django-...@googlegroups.com
#37182: non-existent DOM properties used in skip link to content selenium test
-------------------------------------+-------------------------------------
Reporter: Varun Kasyap | Owner: Varun
Pentamaraju | Kasyap Pentamaraju
Type: | Status: assigned
Cleanup/optimization |
Component: contrib.admin | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Varun Kasyap Pentamaraju):

* has_patch: 0 => 1

Comment:

https://github.com/django/django/pull/21528
--
Ticket URL: <https://code.djangoproject.com/ticket/37182#comment:2>
Reply all
Reply to author
Forward
0 new messages