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:
Javi Martín
2021-03-29 13:49:09 +02:00
parent b2bc4d19f5
commit 287c488734
17 changed files with 75 additions and 74 deletions

View File

@@ -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"

View File

@@ -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