21 lines
784 B
Gherkin
21 lines
784 B
Gherkin
@javascript
|
|
Feature: viewing the photo lightbox
|
|
Background:
|
|
Given a user with username "bob"
|
|
And I sign in as "bob@bob.bob"
|
|
And I expand the publisher
|
|
And I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload"
|
|
And I fill in the following:
|
|
| status_message_fake_text | Look at this dog |
|
|
And I press "Share"
|
|
|
|
Scenario: viewing a photo
|
|
Then I should see an image attached to the post
|
|
And I press the attached image
|
|
Then I should see the photo lightbox
|
|
|
|
Scenario: closing the lightbox by clicking the close link
|
|
Then I should see an image attached to the post
|
|
And I press the attached image
|
|
And I press the close lightbox link
|
|
Then I should not see the photo lightbox
|