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

Commit

Permalink
✅ bump gh-task-button test timers to avoid random test failures
Browse files Browse the repository at this point in the history
no issue
- on some systems (and occasionally on Travis) 20ms was not enough time for the task button state to have resolved resulting in random test failures
  • Loading branch information
kevinansfield authored and kirrg001 committed Mar 13, 2017
1 parent e8a1152 commit 652fe85
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/integration/components/gh-task-button-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ describe('Integration: Component: gh-task-button', function() {

run.later(this, function () {
expect(this.$('button'), 'ended class').to.not.have.class('appear-disabled');
}, 70);
}, 100);

wait().then(done);
});
Expand All @@ -89,7 +89,7 @@ describe('Integration: Component: gh-task-button', function() {
run.later(this, function () {
expect(this.$('button')).to.have.class('gh-btn-green');
expect(this.$('button')).to.contain('Saved');
}, 70);
}, 100);

wait().then(done);
});
Expand All @@ -108,7 +108,7 @@ describe('Integration: Component: gh-task-button', function() {
expect(this.$('button')).to.not.have.class('gh-btn-green');
expect(this.$('button')).to.have.class('im-a-success');
expect(this.$('button')).to.contain('Saved');
}, 70);
}, 100);

wait().then(done);
});
Expand All @@ -130,7 +130,7 @@ describe('Integration: Component: gh-task-button', function() {
run.later(this, function () {
expect(this.$('button')).to.have.class('gh-btn-red');
expect(this.$('button')).to.contain('Retry');
}, 70);
}, 100);

wait().then(done);
});
Expand All @@ -148,7 +148,7 @@ describe('Integration: Component: gh-task-button', function() {
run.later(this, function () {
expect(this.$('button')).to.have.class('gh-btn-red');
expect(this.$('button')).to.contain('Retry');
}, 70);
}, 100);

wait().then(done);
});
Expand All @@ -167,7 +167,7 @@ describe('Integration: Component: gh-task-button', function() {
expect(this.$('button')).to.not.have.class('gh-btn-red');
expect(this.$('button')).to.have.class('im-a-failure');
expect(this.$('button')).to.contain('Retry');
}, 70);
}, 100);

wait().then(done);
});
Expand Down Expand Up @@ -216,7 +216,7 @@ describe('Integration: Component: gh-task-button', function() {
// chai-jquery test doesn't work because Firefox outputs blank string
// expect(this.$('button')).to.not.have.attr('style');
expect(this.$('button').attr('style')).to.be.blank;
}, 70);
}, 100);

wait().then(done);
});
Expand Down

0 comments on commit 652fe85

Please sign in to comment.