Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #18842 from darchons/bug864395-the-i-want-to-help
Browse files Browse the repository at this point in the history
Bug 864395 - Correctly test send perf data checkbox;
  • Loading branch information
leibovic committed May 7, 2014
2 parents ca8eefa + 8d39344 commit 8c2808c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/settings/test/marionette/app/regions/improve.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ ImprovePanel.prototype = {
},

enableSubmitPerfData: function() {
var initialState = this.isSubmitPerfData;
this.waitForElement('submitPerfData').tap();
this.client.waitFor(function() {
return this.isSubmitPerfData;
// Ensure tapping the element changed its state
return this.isSubmitPerfData !== initialState;
}.bind(this));
},

Expand Down

0 comments on commit 8c2808c

Please sign in to comment.