diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 06:09:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-11 06:09:13 +0300 |
commit | ea99abb145ed193c2ac5d19efbff3b8990a54c9c (patch) | |
tree | c4f3870175c3334d0842eb429b5395a7845c2528 /spec/frontend | |
parent | a9104a50136e485c8dda7af37106332f9010a1e8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/boards/issue_card_spec.js | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/spec/frontend/boards/issue_card_spec.js b/spec/frontend/boards/issue_card_spec.js index 526cdb81ac6..1fd2b417aba 100644 --- a/spec/frontend/boards/issue_card_spec.js +++ b/spec/frontend/boards/issue_card_spec.js @@ -66,7 +66,11 @@ describe('Issue card component', () => { }); it('does not render confidential icon', () => { - expect(wrapper.find('.fa-eye-flash').exists()).toBe(false); + expect(wrapper.find('.confidential-icon').exists()).toBe(false); + }); + + it('does not render blocked icon', () => { + expect(wrapper.find('.issue-blocked-icon').exists()).toBe(false); }); it('renders confidential icon', done => { @@ -324,4 +328,20 @@ describe('Issue card component', () => { .catch(done.fail); }); }); + + describe('blocked', () => { + beforeEach(done => { + wrapper.setProps({ + issue: { + ...wrapper.props('issue'), + blocked: true, + }, + }); + wrapper.vm.$nextTick(done); + }); + + it('renders blocked icon if issue is blocked', () => { + expect(wrapper.find('.issue-blocked-icon').exists()).toBe(true); + }); + }); }); |