Make infinite scroll feature work on any size screen.

This commit is contained in:
Sarah Mei 2011-07-14 17:31:31 -07:00
parent ed56a4f8de
commit a096f3d9fc
2 changed files with 8 additions and 1 deletions

View file

@ -6,7 +6,8 @@ Feature: infinite scroll
Background:
Given many posts from alice for bob
When I sign in as "bob@bob.bob"
And I resize my window to 800x600
And I sign in as "bob@bob.bob"
Scenario: on the main stream by activity
Then I should see 15 posts

View file

@ -180,3 +180,9 @@ end
Then /^the notification dropdown should be visible$/ do
find(:css, "#notification_dropdown").should be_visible
end
When /^I resize my window to 800x600$/ do
page.execute_script <<-JS
window.resizeTo(800,600);
JS
end