diaspora/features/activity_stream.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

23 lines
857 B
Gherkin

@javascript
Feature: The activity stream
Scenario: Sorting
Given a user with username "bob"
When I sign in as "bob@bob.bob"
And I post "A- I like turtles"
And I post "B- barack obama is your new bicycle"
And I post "C- barack obama is a square"
When I go to the activity stream page
Then "C- barack obama is a square" should be post 1
And "B- barack obama is your new bicycle" should be post 2
And "A- I like turtles" should be post 3
When I like the post "A- I like turtles"
And I comment "Sassy sawfish" on "C- barack obama is a square"
And I like the post "B- barack obama is your new bicycle"
When I go to the activity stream page
Then "B- barack obama is your new bicycle" should be post 1
And "C- barack obama is a square" should be post 2
And "A- I like turtles" should be post 3