[wp-trac] [WordPress Trac] #32940: Add IDs to Admin Hyperlinks

WordPress Trac noreply at wordpress.org
Thu Jul 9 12:19:01 UTC 2015

#32940: Add IDs to Admin Hyperlinks
 Reporter:  charlestonsw    |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
 Suggestion: add Ids to the primary admin interface hyperlinks.

 Adding IDs to primary anchor tags in the admin UI makes it far easier to
 create and maintain UI test suites such as Selenium IDE.    UI testing
 catches problems that phpUnit is not designed to address.

 Example:   Pages / Add New

 xpath = /html/body/div/div[1]/div[2]/ul/li[5]/ul/li[3]/a

 css = html.wp-toolbar body.wp-admin.wp-core-ui.js.edit-php.auto-fold
 en-us.customize-support.sticky-menu.svg div#wpwrap div#adminmenumain
 div#adminmenuwrap ul#adminmenu li#menu-pages.wp-has-submenu.wp-has-
 current-submenu.wp-menu-open.menu-top.menu-icon-page ul.wp-submenu.wp-
 submenu-wrap li a

 Would be nice to reference key elements with things like a#menu-page-add-
 new instead.   Especially when updates to WP Core change the higher level
 HTML DOM classesor structures.

Ticket URL: <https://core.trac.wordpress.org/ticket/32940>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list