diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2018-10-26 11:04:45 +0200 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2018-10-29 10:57:15 +0100 |
commit | 557cf4fa7633c65e7beacb273550de85cb9e130e (patch) | |
tree | 86704cc5ff38f81611c6b7bef9580f8838908fee /spec/javascripts/pipelines/pipelines_actions_spec.js | |
parent | 91765b80b74776b1cd6af0e345ca8137dc707c6a (diff) | |
download | gitlab-ce-557cf4fa7633c65e7beacb273550de85cb9e130e.tar.gz |
Add dynamic timer for delayed jobs in pipelines listwinh-pipeline-actions-dynamic-timer
Diffstat (limited to 'spec/javascripts/pipelines/pipelines_actions_spec.js')
-rw-r--r-- | spec/javascripts/pipelines/pipelines_actions_spec.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/javascripts/pipelines/pipelines_actions_spec.js b/spec/javascripts/pipelines/pipelines_actions_spec.js index b5c62178642..a7dcd532f4f 100644 --- a/spec/javascripts/pipelines/pipelines_actions_spec.js +++ b/spec/javascripts/pipelines/pipelines_actions_spec.js @@ -62,9 +62,13 @@ describe('Pipelines Actions dropdown', () => { ); }; - beforeEach(() => { + beforeEach(done => { spyOn(Date, 'now').and.callFake(() => new Date('2063-04-04T00:42:00Z').getTime()); vm = mountComponent(Component, { actions: [scheduledJobAction, expiredJobAction] }); + + Vue.nextTick() + .then(done) + .catch(done.fail); }); it('emits postAction event after confirming', () => { |