diff --git a/features/photos.feature b/features/photos.feature new file mode 100644 index 000000000..5d4dfde4a --- /dev/null +++ b/features/photos.feature @@ -0,0 +1,22 @@ +@javascript +Feature: photos + In order to enlighten humanity for the good of society + As a rock star + I want to post pictures of a button + + Background: + Given a user with username "bob" + When I sign in as "bob@bob.bob" + + And I am on the home page + + Scenario: deleting a photo will delete a photo-only post if the photo was the last image + Given I expand the publisher + And I attach the file "spec/fixtures/button.png" to hidden element "file" within "#file-upload" + And I wait for the ajax to finish + Then I should see an uploaded image within the photo drop zone + And I press "Share" + And I wait for the ajax to finish + And I follow "Your Aspects" + Then I should see a "img" within ".stream_element div.photo_attachments" +