Opened 6 years ago
Closed 6 years ago
#31042 closed Cleanup/optimization (fixed)
Rewrite AdminSeleniumTestCase.get_css_value() without jQuery.
| Reported by: | Jon Dufresne | Owned by: | Jon Dufresne |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
jQuery is used in AdminSeleniumTestCase.get_css_value() to query an element by a CSS selector and then return a CSS property.
Both of these operations have equivalent native Browser support and so this method does not require jQuery.
jQuery() → document.querySelector()
.css() → HTMLElement.style
Change History (3)
comment:1 by , 6 years ago
| Has patch: | set |
|---|
comment:2 by , 6 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/12151