diaspora/features/infinite_scroll.feature
2011-10-23 19:05:31 -07:00

78 lines
2.1 KiB
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 alice for bob
And I resize my window to 800x600
And I sign in as "bob@bob.bob"
And I follow "Your Aspects"
And I wait for the ajax to finish
Scenario: on the main stream by activity
When I follow "commented on"
And I wait for the ajax to finish
Then I should see 15 posts
And I should see "alice - 26 - #seeded"
When I scroll down
Then I should see 30 posts
And I should see "alice - 11 - #seeded"
When I scroll down
Then I should see 40 posts
And I should see "alice - 1 - #seeded"
When I scroll down
Then I should see "No more"
Scenario: on the main stream post created time
And I go to the home page
And I wait for the ajax to finish
Then I should see 15 posts
And I should see "alice - 15 - #seeded"
When I scroll down
Then I should see 30 posts
And I should see "alice - 30 - #seeded"
When I scroll down
Then I should see 40 posts
And I should see "alice - 40 - #seeded"
When I scroll down
Then I should see "No more"
Scenario: On a tag page
When I go to the tag page for "seeded"
Then I should see 15 posts
And I should see "alice - 15 - #seeded"
When I scroll down
Then I should see 30 posts
And I should see "alice - 30 - #seeded"
When I scroll down
Then I should see 40 posts
And I should see "alice - 40 - #seeded"
When I scroll down
Then I should see "No more"
Scenario: On a profile page
And I am on "alice@alice.alice"'s page
Then I should see 15 posts
And I should see "alice - 15 - #seeded"
When I scroll down
Then I should see 30 posts
And I should see "alice - 30 - #seeded"
When I scroll down
Then I should see 40 posts
And I should see "alice - 40 - #seeded"
When I scroll down
Then I should see "No more"