Wait for spinner to disappear before checking for posts in the stream

closes #6615
This commit is contained in:
Manuel Vögele 2016-01-03 12:42:49 +01:00 committed by Jonne Haß
parent b1f7a452f9
commit a4257a70e5

View file

@ -15,6 +15,7 @@ Then /^I should not see an uploaded image within the photo drop zone$/ do
end end
Then /^I should not see any posts in my stream$/ do Then /^I should not see any posts in my stream$/ do
page.assert_selector("#paginate .loader", visible: :hidden)
page.assert_selector(".stream_element", count: 0) page.assert_selector(".stream_element", count: 0)
end end