Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonne Haß <me@mrzyx.de>2013-07-22 00:40:04 +0400
committerJonne Haß <me@mrzyx.de>2013-07-31 03:47:23 +0400
commit300752fc87decabc169e96aaca72488c6b685eb4 (patch)
treeec36022a803513f7537011fab4e8d34e609e9049 /features/step_definitions/stream_steps.rb
parentcdc29e449d3efe690a076c83f57723f9f2d54927 (diff)
bump capybara
* removed wait_until where possible * replaced wait_until with DOM obersavtions * added match: :first to all finders that assumed getting the first element * replaced evaluate_script with execute_script where possible * replaced a few execute_script with DOM observations through Capybara * removed sleep where possible * replaced sleep with DOM obersvations * replaced "wait for ajax" with DOM obersavations * replaced alert confirmation with new selenium API * bump selenium webdriver * made any other fixes to get green again
Diffstat (limited to 'features/step_definitions/stream_steps.rb')
-rw-r--r--features/step_definitions/stream_steps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/features/step_definitions/stream_steps.rb b/features/step_definitions/stream_steps.rb
index a8a4cebea..5f8ac4c55 100644
--- a/features/step_definitions/stream_steps.rb
+++ b/features/step_definitions/stream_steps.rb
@@ -11,11 +11,11 @@ Then /^"([^"]*)" should be post (\d+)$/ do |post_text, position|
end
When /^I toggle nsfw posts$/ do
- find(".toggle_nsfw_state").click
+ find(".toggle_nsfw_state", match: :first).click
end
Then /^I should have (\d+) nsfw posts$/ do |num_posts|
- all(".nsfw-shield").size.should == num_posts.to_i
+ page.should have_css(".nsfw-shield", count: num_posts.to_i)
end
When /^I click the show page link for "([^"]*)"$/ do |post_text|