From b085478c4c2bed74fdc6eb2c33bfc62e791baf03 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 1 Jan 2020 06:09:01 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/frontend/jobs/components/log/collapsible_section_spec.js | 5 ++++- spec/frontend/jobs/components/log/line_header_spec.js | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'spec/frontend/jobs') diff --git a/spec/frontend/jobs/components/log/collapsible_section_spec.js b/spec/frontend/jobs/components/log/collapsible_section_spec.js index 01184a51193..2a1f0bcf124 100644 --- a/spec/frontend/jobs/components/log/collapsible_section_spec.js +++ b/spec/frontend/jobs/components/log/collapsible_section_spec.js @@ -68,6 +68,9 @@ describe('Job Log Collapsible Section', () => { }); findCollapsibleLine().trigger('click'); - expect(wrapper.emitted('onClickCollapsibleLine').length).toBe(1); + + return wrapper.vm.$nextTick().then(() => { + expect(wrapper.emitted('onClickCollapsibleLine').length).toBe(1); + }); }); }); diff --git a/spec/frontend/jobs/components/log/line_header_spec.js b/spec/frontend/jobs/components/log/line_header_spec.js index 2d2f92fad9d..cc3f9111153 100644 --- a/spec/frontend/jobs/components/log/line_header_spec.js +++ b/spec/frontend/jobs/components/log/line_header_spec.js @@ -79,7 +79,9 @@ describe('Job Log Header Line', () => { it('emits toggleLine event', () => { wrapper.trigger('click'); - expect(wrapper.emitted().toggleLine.length).toBe(1); + return wrapper.vm.$nextTick().then(() => { + expect(wrapper.emitted().toggleLine.length).toBe(1); + }); }); }); -- cgit v1.2.1