diaspora/features/desktop/profile_photos.feature
op48 844fe9d6b9 Allow users to delete own photos from gallery
Added delete label to photos in gallery

added an event to delete photos of current user

Added css for hiding/revealing the delete label

Included the photo stylesheet

Added cucumber test for deleting your own photos

Removed wip
2014-08-19 10:11:06 +01:00

34 lines
1.1 KiB
Gherkin

@javascript
Feature: show photos
Background:
Given following users exist:
| username | email |
| Bob Jones | bob@bob.bob |
| Alice Smith | alice@alice.alice |
| Robert Grimm | robert@grimm.grimm |
And I sign in as "robert@grimm.grimm"
Given I expand the publisher
And I have turned off jQuery effects
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
And I press "Share"
Scenario: see my own photos
When I am on "robert@grimm.grimm"'s page
And I follow "View all" within ".image_list"
Then I should be on person_photos page
Scenario: I cannot see photos of people who don't share with me
When I sign in as "alice@alice.alice"
And I am on "robert@grimm.grimm"'s page
Then I should not see "photos" within "div#profile"
Scenario: I delete a photo
Given I am on "robert@grimm.grimm"'s photos page
When I delete a photo
And I confirm the alert
Then I should not see "photos" within "div#profile"