#27942: admin's inlines.js indiscriminately adds "add" buttons to all tables in
inlines
-------------------------------------+-------------------------------------
     Reporter:  James Pulec          |                    Owner:  Adonys
                                     |  Alea Boffill
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.admin        |                  Version:  master
     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:  1
-------------------------------------+-------------------------------------

Comment (by Adonys Alea Boffill):

 I have a solution modifying the jQuery selector we can change:
 {{{
 $(inlineOptions.name + "-group .tabular.inline-related tbody tr")
 }}}
 by
 {{{
 $(inlineOptions.name + "-group .tabular.inline-related tbody:first > tr")
 }}}

 That solution works good, all test are passed.

 But the interesting thing is... what is the best option to build tests to
 satisfy this fixed??? This is an scenario difficult to reproduce.
 * JavaScript tests
 * Selenium tests
 * Both

 To build selenium tests I think that is necessary to implement some test
 widget in order to generate the HTML content necessary to reproduce the
 specific scenario.

 some other idea before start to try to build the tests??

--
Ticket URL: <https://code.djangoproject.com/ticket/27942#comment:3>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.37c3edb3e4cf46cc5358c70d3a021c2c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to