diff options
Diffstat (limited to 'spec/frontend/pages/labels/components')
-rw-r--r-- | spec/frontend/pages/labels/components/promote_label_modal_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/pages/labels/components/promote_label_modal_spec.js b/spec/frontend/pages/labels/components/promote_label_modal_spec.js index 1fa12cf1365..f969808d78b 100644 --- a/spec/frontend/pages/labels/components/promote_label_modal_spec.js +++ b/spec/frontend/pages/labels/components/promote_label_modal_spec.js @@ -32,10 +32,9 @@ describe('Promote label modal', () => { }); it('contains a label span with the color', () => { - const labelFromTitle = vm.$el.querySelector('.modal-header .label.color-label'); - - expect(labelFromTitle.style.backgroundColor).not.toBe(null); - expect(labelFromTitle.textContent).toContain(vm.labelTitle); + expect(vm.labelColor).not.toBe(null); + expect(vm.labelColor).toBe(labelMockData.labelColor); + expect(vm.labelTitle).toBe(labelMockData.labelTitle); }); }); |