This method allows to fill in CONSUL's signup form without interacting with other UI elements, useful when using testing locales other than English Backported from Decide Madrid
25 lines
668 B
Ruby
25 lines
668 B
Ruby
Dir["./spec/support/common_actions/*.rb"].each { |f| require f }
|
|
|
|
module CommonActions
|
|
include Budgets
|
|
include Comments
|
|
include Debates
|
|
include Emails
|
|
include Notifications
|
|
include Polls
|
|
include Proposals
|
|
include Tags
|
|
include Users
|
|
include Verifications
|
|
include Votes
|
|
|
|
def fill_in_signup_form(email = 'manuela@consul.dev', password = 'judgementday')
|
|
fill_in 'user_username', with: "Manuela Carmena #{rand(99999)}"
|
|
fill_in 'user_email', with: email
|
|
fill_in 'user_password', with: password
|
|
fill_in 'user_password_confirmation', with: password
|
|
check 'user_terms_of_service'
|
|
end
|
|
|
|
end
|