diaspora/features/reactions_mobile.feature
Jonne Haß 300752fc87 bump capybara
* 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
2013-07-31 01:47:23 +02:00

34 lines
1.3 KiB
Gherkin

@javascript
Feature: reactions mobile post
In order to navigate Diaspora*
As a mobile user
I want to react to posts
Background:
Given following users exist:
| username | email |
| Bob Jones | bob@bob.bob |
| Alice Smith | alice@alice.alice |
And a user with email "bob@bob.bob" is connected with "alice@alice.alice"
When "alice@alice.alice" has posted a status message with a photo
And I sign in as "bob@bob.bob"
And I toggle the mobile view
Scenario: like on a mobile post
When I should see "0 reactions" within ".show_comments"
And I click on selector "span.show_comments"
And I click on selector "a.image_link.like_action.inactive"
Then I go to the stream page
And I should see "1 reaction" within ".show_comments"
And I click on selector "a.show_comments"
And I should see "1" within ".like_count"
Scenario: comment a mobile post
When I click on selector "a.image_link.comment_action.inactive"
And I fill in the following:
| text | is that a poodle? |
And I press "Comment"
Then I go to the stream page
And I should see "1 reaction" within ".show_comments"
And I click on selector "a.show_comments"
And I should see "1" within ".comment_count"