Ticket #4047 (closed enhancement: duplicate)

Opened 4 years ago

Last modified 4 years ago

The dialog buttons should have ids

Reported by: abtrapp Owned by:
Priority: major Milestone: 1.8
Component: ui.dialog Version: 1.6rc6
Keywords: button id Cc:
Blocking: Blocked by:

Description

It is almost impossible to test jQuery dialogs with most of the browser test tools, because dialog buttons can't have IDs. Even automatically generated IDs (with a numbering) would help.

The decision is: don't use jQuery dialogs or don't test your software.

I think that testing is important ;)

Change History

comment:1 Changed 4 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:2 Changed 4 years ago by scott.gonzalez

How are you going to reference buttons by id if the ids are auto-generated with an unpredictable number? Are you not able to reference buttons by position, e.g., .ui-dialog-buttonpane button:first?

comment:3 Changed 4 years ago by andrew_

I'm in agreement with Scott G. I've used exactly that method to examine and test dialog functionality. I propose the priority be changed to minor.

comment:4 Changed 4 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to duplicate

I moved this suggestion into #4344 which covers the overall redesign of button flexibility.

Note: See TracTickets for help on using tickets.