diff --git a/features/comment.feature b/features/comment.feature index 2880da6..ded21f1 100644 --- a/features/comment.feature +++ b/features/comment.feature @@ -40,15 +40,14 @@ Feature: comment @selenium Scenario: redirect to right place after comment a picture - Given I am logged in as "booking" - And the following files + Given the following files | owner | file | mime | | booking | rails.png | image/png | + Given I am logged in as "booking" And I am on /booking/rails.png?view=true And I fill in "Title" with "Hey ho, let's go!" And I fill in "Enter your comment" with "Hey ho, let's go!" When I press "Post comment" - And I wait 2 seconds Then I should be exactly on /booking/rails.png?view=true @selenium @@ -56,6 +55,5 @@ Feature: comment Given I am logged in as "booking" And I am on /booking/article-to-comment When I press "Post comment" - And I wait 2 seconds Then I should see "Title can't be blank" And I should see "Body can't be blank" diff --git a/features/step_definitions/custom_webrat_steps.rb b/features/step_definitions/custom_webrat_steps.rb index 87a24de..a096b94 100644 --- a/features/step_definitions/custom_webrat_steps.rb +++ b/features/step_definitions/custom_webrat_steps.rb @@ -6,10 +6,6 @@ When /^I should not see "([^\"]+)" link$/ do |link| response.should_not have_selector("a", :content => link) end -When /^I wait (\d+) seconds$/ do |seconds| - sleep seconds.to_i -end - Then /^I should be exactly on (.+)$/ do |page_name| URI.parse(current_url).request_uri.should == path_to(page_name) end -- libgit2 0.21.2