diaspora/features/step_definitions/profile_steps.rb
2017-09-17 19:29:15 +02:00

18 lines
397 B
Ruby

# frozen_string_literal: true
And /^I mark myself as not safe for work$/ do
check('profile[nsfw]')
end
And /^I mark myself as safe for work$/ do
uncheck('profile[nsfw]')
end
And /^I mark myself as not searchable$/ do
uncheck("profile[searchable]")
end
When(/^I delete a photo$/) do
find('.photo.loaded .thumbnail', :match => :first).hover
find('.delete', :match => :first).click
end