Merge pull request #4739 from MrZYX/stabilize_cukes

Stabilize cukes
This commit is contained in:
Dennis Schubert 2014-01-26 14:39:43 -08:00
commit 1f76a9a354
4 changed files with 5 additions and 8 deletions

View file

@ -1,5 +1,5 @@
app.models.Aspect = Backbone.Model.extend({ app.models.Aspect = Backbone.Model.extend({
toggleSelected: function(){ toggleSelected: function(){
this.set({'selected' : !this.get('selected')}); this.set({'selected' : !this.get('selected')}, {async: false});
} }
}); });

View file

@ -27,10 +27,7 @@ Feature: commenting
When I sign in as "bob@bob.bob" When I sign in as "bob@bob.bob"
And I am on "alice@alice.alice"'s page And I am on "alice@alice.alice"'s page
Then I should see "Look at this dog" Then I should see "Look at this dog"
When I focus the comment field When I comment "is that a poodle?" on "Look at this dog"
And I fill in the following:
| text | is that a poodle? |
And I press "Comment"
And I click to delete the first comment And I click to delete the first comment
And I confirm the alert And I confirm the alert
Then I should not see "is that a poodle?" Then I should not see "is that a poodle?"

View file

@ -120,7 +120,7 @@ end
When /^I click to delete the first comment$/ do When /^I click to delete the first comment$/ do
within("div.comment", match: :first) do within("div.comment", match: :first) do
find(".controls").hover find(".controls").hover
find(".comment_delete").click find(".comment_delete", visible: false).click # TODO: hax to check what's failing on Travis
end end
end end

View file

@ -23,7 +23,7 @@ prefork = proc do
# Capybara.default_wait_time = 30 # Capybara.default_wait_time = 30
# While there are a lot of failures, wait less, avoiding travis timeout # While there are a lot of failures, wait less, avoiding travis timeout
Capybara.default_wait_time = 10 Capybara.default_wait_time = 15
# If you set this to false, any error raised from within your app will bubble # If you set this to false, any error raised from within your app will bubble
# up to your step definition and out to cucumber unless you catch it somewhere # up to your step definition and out to cucumber unless you catch it somewhere
@ -117,5 +117,5 @@ end
# DeferredGarbageCollection.start # DeferredGarbageCollection.start
# end # end
# After do # After do
# DeferredGarbageCollection.reconsider # DeferredGarbageCollection.reconsider
# end # end