Ruby on Rails Thursday, February 4, 2016

I'm working on an integration test for a project that uses minitest and Capybara.  You can find the source code in question at https://github.com/jhsu802701/ruby_mn_site/blob/sponsors_delete/test/integration/sponsors_change_test.rb in the section 'super admin can add, change, or delete sponsors'.

When you click on the Delete button, there's a Javascript dialog box that asks if you're sure and gives you the "Cancel" or "OK" options.  How do I get the test to click the "OK" option given that the normal Capybara/minitest commands only work on the HTML page and do not work on these pop-up dialog boxes?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a83187fd-f66f-47f3-b99c-2ea46bf81a84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment