16 lines
366 B
Ruby
16 lines
366 B
Ruby
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
|