Use human labels to fill in proposal form in tests

This way we make sure the label is correctly associated with a field.
This commit is contained in:
Javi Martín
2021-04-10 19:41:25 +02:00
parent 386771f2df
commit 7b15cc290d
4 changed files with 49 additions and 48 deletions

View File

@@ -36,9 +36,9 @@ module CommonActions
fill_in "Proposal title", with: "Help refugees"
fill_in "Proposal summary", with: "In summary, what we want is..."
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"
fill_in "External video URL", with: "https://www.youtube.com/watch?v=yPQfcG-eimk"
fill_in "Full name of the person submitting the proposal", with: "Isabel Garcia"
check "I agree to the Privacy Policy and the Terms and conditions of use"
end
def set_officing_booth(booth = nil)