diaspora/features/infinite_scroll.feature
2011-04-28 09:28:59 -07:00

37 lines
1,010 B
Gherkin

@javascript
Feature: infinite scroll
In order to browse without disruption
As medium-sized internet grazing animal
I want the stream to infinite scroll
Background:
Given many posts from bob and alice
Scenario: on the main stream
When I sign in as "bob@bob.bob"
Then I should see 15 posts
When I scroll down
And I wait for the ajax to finish
#FIXME
And I wait for the ajax to finish
Then I should see 30 posts
When I follow "generic"
And I wait for the ajax to finish
Then I should see 15 posts
When I scroll down
And I wait for the ajax to finish
And I wait for the ajax to finish
Then I should see 30 posts
Scenario: On a tag page
When I sign in as "bob@bob.bob"
And I am on the tag page for "seeded"
Then I should see 15 posts
When I scroll down
And I wait for the ajax to finish
And I wait for the ajax to finish
Then I should see 30 posts