[Issue 1126] Starting to build cucumber test for issue
This commit is contained in:
parent
f5fbaaadcf
commit
636f05bd32
1 changed files with 22 additions and 0 deletions
22
features/photos.feature
Normal file
22
features/photos.feature
Normal 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"
|
||||
|
||||
Loading…
Reference in a new issue