Skip to content
Extraits de code Groupes Projets
Valider a096f3d9 rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

Make infinite scroll feature work on any size screen.

parent ed56a4f8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -6,7 +6,8 @@ Feature: infinite scroll ...@@ -6,7 +6,8 @@ Feature: infinite scroll
Background: Background:
Given many posts from alice for bob 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 Scenario: on the main stream by activity
Then I should see 15 posts Then I should see 15 posts
......
...@@ -180,3 +180,9 @@ end ...@@ -180,3 +180,9 @@ end
Then /^the notification dropdown should be visible$/ do Then /^the notification dropdown should be visible$/ do
find(:css, "#notification_dropdown").should be_visible find(:css, "#notification_dropdown").should be_visible
end end
When /^I resize my window to 800x600$/ do
page.execute_script <<-JS
window.resizeTo(800,600);
JS
end
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter