Use JavaScripts in tests using CKEditor
We were filling in textareas, so we were only testing how the application behaves for about 1%-2% of our users.
This commit is contained in:
@@ -35,7 +35,7 @@ module CommonActions
|
||||
def fill_in_proposal
|
||||
fill_in "Proposal title", with: "Help refugees"
|
||||
fill_in "Proposal summary", with: "In summary, what we want is..."
|
||||
fill_in "Proposal text", with: "This is very important because..."
|
||||
fill_in_ckeditor "Proposal text", with: "This is very important because..."
|
||||
fill_in "proposal_video_url", with: "https://www.youtube.com/watch?v=yPQfcG-eimk"
|
||||
fill_in "proposal_responsible_name", with: "Isabel Garcia"
|
||||
check "proposal_terms_of_service"
|
||||
|
||||
@@ -21,6 +21,6 @@ module Emails
|
||||
fill_in "Subject", with: (options[:subject] || "This is a different subject")
|
||||
fill_in "E-mail address that will appear as sending the newsletter",
|
||||
with: (options[:from] || "no-reply@consul.dev")
|
||||
fill_in "Email content", with: (options[:body] || "This is a different body")
|
||||
fill_in_ckeditor "Email content", with: (options[:body] || "This is a different body")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user