Make toggle aspect call synchronous and bump capybaras wait timeout
in features/desktop/aspect_navigation.feature:18 we quickly leave the page before waiting for the request to finish. By making the HTTP call synchronous we wait for it to finish before we reflect the change in the DOM, thus giving Capybara a chance to wait for it. Also let Capybara wait longer. This should random failures of the aforementioned cuke rarer.
This commit is contained in:
parent
f9c230dd31
commit
8b8071925d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
app.models.Aspect = Backbone.Model.extend({
|
||||
toggleSelected: function(){
|
||||
this.set({'selected' : !this.get('selected')});
|
||||
this.set({'selected' : !this.get('selected')}, {async: false});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ prefork = proc do
|
|||
# Capybara.default_wait_time = 30
|
||||
|
||||
# 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
|
||||
# up to your step definition and out to cucumber unless you catch it somewhere
|
||||
|
|
@ -117,5 +117,5 @@ end
|
|||
# DeferredGarbageCollection.start
|
||||
# end
|
||||
# After do
|
||||
# DeferredGarbageCollection.reconsider
|
||||
# DeferredGarbageCollection.reconsider
|
||||
# end
|
||||
|
|
|
|||
Loading…
Reference in a new issue