parent
60ded4eb5a
commit
1801b7fd20
|
@ -122,6 +122,7 @@ export default {
|
||||||
@scroll="scrollBuildLog"
|
@scroll="scrollBuildLog"
|
||||||
>
|
>
|
||||||
<code
|
<code
|
||||||
|
v-show="!detailJob.isLoading"
|
||||||
class="bash"
|
class="bash"
|
||||||
v-html="jobOutput"
|
v-html="jobOutput"
|
||||||
>
|
>
|
||||||
|
|
|
@ -62,6 +62,11 @@ describe('IDE jobs detail view', () => {
|
||||||
expect(vm.$el.querySelector('.build-loader-animation').style.display).toBe('');
|
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 => {
|
it('hide loading icon when isLoading is false', done => {
|
||||||
vm.$store.state.pipelines.detailJob.isLoading = false;
|
vm.$store.state.pipelines.detailJob.isLoading = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue