I am using jquery UI dialogs in Rails.
How do you use cucumber to test for opening dialogs? I have a registration dialog and after that another confirmation dialog. The latter appearing after successful signup.
However I noticed that when cucumber presses sign up button to submit, it never really tests for the other pop up dialog. And if I disabled the opening of the 2nd dialog, cucumber still passes. It seems the modal is invisible but it can be seen by cucumber. Has anyone encountered this?
Thanks in advance!
Introduce wrapper step – it will basically evaluate step with scoping it to dialog container.
After that you’ll be able to add steps like
P.S: Don’t forget to put correct class into the step, I forget which one is used in jQuery UI but I believe that it should be something like “.dialog”