#31042: Rewrite AdminSeleniumTestCase.get_css_value() without jQuery.
------------------------------------------------+------------------------
               Reporter:  Jon Dufresne          |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Testing framework     |        Version:  master
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 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`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31042>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.1ad2030ab6794cc17828c592454ab1b6%40djangoproject.com.

Reply via email to