diff options
Diffstat (limited to 'spec/frontend/ide/components/jobs/stage_spec.js')
-rw-r--r-- | spec/frontend/ide/components/jobs/stage_spec.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/frontend/ide/components/jobs/stage_spec.js b/spec/frontend/ide/components/jobs/stage_spec.js index dadf5b4caee..400eabfee6d 100644 --- a/spec/frontend/ide/components/jobs/stage_spec.js +++ b/spec/frontend/ide/components/jobs/stage_spec.js @@ -65,7 +65,9 @@ describe('IDE pipeline stage', () => { .findAll(Item) .at(0) .vm.$emit('clickViewLog', job); - expect(wrapper.emitted().clickViewLog[0][0]).toBe(job); + return wrapper.vm.$nextTick().then(() => { + expect(wrapper.emitted().clickViewLog[0][0]).toBe(job); + }); }); it('renders stage details & icon', () => { |