Now I'm trying to add rspec tests to refinerycms-testimonials, and I'm testing the form where one adds a testimonial.
quote is a required field so it must have a value.
For my testing I have borrowed parts of the refinerycms-page's testing and simplified/renamed to fit the far simpler testimonial.
When I test using this
visit refinery.testimonials_admin_testimonials_path
click_link ::I18n.t('create_new', :scope => 'refinery.testimonials.admin.testimonials.actions')
fill_in "Name", :with => "My first testimonial"
sleep 5
within_frame('WYMeditor_0'){ fill_in "quote", :with => "Quote" }
click_button "Save"
I get this:
Testimonials new/create allows a testimonial to be created
Failure/Error: within_frame('WYMeditor_0'){ fill_in "quote", :with => "Quote" }
Capybara::NotSupportedByDriverError:
Capybara::NotSupportedByDriverError
How should I fill in this required field?
I found one link (
http://ruby-journal.com/how-to-fill-in-fckeditor-with-capybara-2/) which may be what I need, but I'd like to know how refinerycms test it. (Obviously I haven't found that part of the page testing yet.)
Anita