* removed wait_until where possible * replaced wait_until with DOM obersavtions * added match: :first to all finders that assumed getting the first element * replaced evaluate_script with execute_script where possible * replaced a few execute_script with DOM observations through Capybara * removed sleep where possible * replaced sleep with DOM obersvations * replaced "wait for ajax" with DOM obersavations * replaced alert confirmation with new selenium API * bump selenium webdriver * made any other fixes to get green again
31 lines
1.1 KiB
Gherkin
31 lines
1.1 KiB
Gherkin
@javascript
|
|
Feature: viewing the photo lightbox
|
|
Background:
|
|
Given I am on the home page
|
|
And a user with username "bob"
|
|
|
|
When I sign in as "bob@bob.bob"
|
|
And I am on the home page
|
|
|
|
Given 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
|
|
|
|
Scenario: closing the lightbox by clicking the backdrop
|
|
Then I should see an image attached to the post
|
|
And I press the attached image
|
|
And I press the lightbox backdrop
|
|
Then I should not see the photo lightbox
|