Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider b80d3245 rédigé par Benjamin Neff's avatar Benjamin Neff
Parcourir les fichiers

Fix some failing cukes because they were too fast

parent ff3bd1f5
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -58,6 +58,7 @@ Feature: new user registration ...@@ -58,6 +58,7 @@ Feature: new user registration
| profile_first_name | some name | | profile_first_name | some name |
And I fill in "tags" with "#rockstar" And I fill in "tags" with "#rockstar"
And I press the first ".as-result-item" within "#as-results-tags" And I press the first ".as-result-item" within "#as-results-tags"
And I wait until ajax requests finished
And I follow "awesome_button" And I follow "awesome_button"
Then I should be on the stream page Then I should be on the stream page
And the publisher should be expanded And the publisher should be expanded
......
...@@ -21,7 +21,8 @@ Feature: Viewing my activity on the stream mobile page ...@@ -21,7 +21,8 @@ Feature: Viewing my activity on the stream mobile page
Scenario: Show liked post on my activity Scenario: Show liked post on my activity
When I sign in as "bob@bob.bob" on the mobile website When I sign in as "bob@bob.bob" on the mobile website
When I click on selector "a.like-action.inactive" When I click on selector "a.like-action.inactive"
And I go to the activity stream page Then I should see an element "a.like-action.active"
When I go to the activity stream page
Then I should see "My activity" within "#main" Then I should see "My activity" within "#main"
And I should see "Hello! I am #newhere" within ".ltr" And I should see "Hello! I am #newhere" within ".ltr"
......
...@@ -186,3 +186,9 @@ end ...@@ -186,3 +186,9 @@ end
Then /^show me the page$/ do Then /^show me the page$/ do
save_and_open_page save_and_open_page
end end
Then /^I wait until ajax requests finished$/ do
Timeout.timeout(Capybara.default_max_wait_time) do
loop until page.evaluate_script("jQuery.active") == 0
end
end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter