[Issue 1126] Starting to build cucumber test for issue

This commit is contained in:
The Lambda Calculus 2011-08-12 16:31:52 -04:00
parent f5fbaaadcf
commit 636f05bd32

22
features/photos.feature Normal file
View file

@ -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"