JanZerebecki added a comment.

  In https://phabricator.wikimedia.org/T69122#1701985, @Ricordisamoa wrote:
  
  > In https://phabricator.wikimedia.org/T69122#1701960, @daniel wrote:
  >
  > > - DOMTestUtils would be "born deprecated". We don't want to encourage 
more usages of it, we really want it to go away and be replaced with something 
better
  >
  >
  > DOMTestUtils is not in good shape yet, but eventually it should implement a 
sensible subset of `assertTag()` and be quite stable.
  
  
  I don't think there is a sensible subset of it. It should really be removed. 
APIs based on nested arrays are a bad idea.
  
  >> based on CSS selectors, perhaps
  > 
  > I'm not aware of any CSS equivalent of 'content'.
  
  Select the surrounding node with CSS then pick out the content via Dom and 
make functions like assertCssSelectionContentContains out of it. Or use 
something that implements https://api.jquery.com/contains-selector/ also 
previously known as https://www.w3.org/TR/css3-selectors/#content-selectors . 
Or use Xpath text() .

TASK DETAIL
  https://phabricator.wikimedia.org/T69122

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JanZerebecki
Cc: JanZerebecki, Ricordisamoa, gerritbot, Aklapper, Wikidata-bugs, Bene, 
Tobi_WMDE_SW, JeroenDeDauw, adrianheine, Lydia_Pintscher, daniel, D3r1ck01, 
Izno, aude, Mbch331



_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to