Fixed IDE jobs empty state showing when loading

Closes #47766
This commit is contained in:
Phil Hughes 2018-06-12 13:53:13 +01:00
parent 60ded4eb5a
commit 1801b7fd20
No known key found for this signature in database
GPG Key ID: 32245528C52E0F9F
2 changed files with 6 additions and 0 deletions

View File

@ -122,6 +122,7 @@ export default {
@scroll="scrollBuildLog"
>
<code
v-show="!detailJob.isLoading"
class="bash"
v-html="jobOutput"
>

View File

@ -62,6 +62,11 @@ describe('IDE jobs detail view', () => {
expect(vm.$el.querySelector('.build-loader-animation').style.display).toBe('');
});
it('hides output when loading', () => {
expect(vm.$el.querySelector('.bash')).not.toBe(null);
expect(vm.$el.querySelector('.bash').style.display).toBe('none');
});
it('hide loading icon when isLoading is false', done => {
vm.$store.state.pipelines.detailJob.isLoading = false;