diff options
author | Martin Hanzel <mhanzel@gitlab.com> | 2019-06-27 06:12:38 +0000 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-06-27 06:12:38 +0000 |
commit | 36d0dc083d2dc0b06304f60666e330408b63809e (patch) | |
tree | 89bbcd36b4ef80b7634987b0659491917533f353 /spec/frontend | |
parent | be099306ef21c2e2360cc2d49a1a61ce4d2b3594 (diff) | |
download | gitlab-ce-36d0dc083d2dc0b06304f60666e330408b63809e.tar.gz |
Conform related issues/MRs card to design docs
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js b/spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js index e43d5301a50..b85e2673624 100644 --- a/spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js +++ b/spec/frontend/vue_shared/components/issue/related_issuable_item_spec.js @@ -88,7 +88,7 @@ describe('RelatedIssuableItem', () => { }); it('renders state title', () => { - const stateTitle = tokenState.attributes('data-original-title'); + const stateTitle = tokenState.attributes('title'); const formatedCreateDate = formatDate(props.createdAt); expect(stateTitle).toContain('<span class="bold">Opened</span>'); @@ -155,7 +155,9 @@ describe('RelatedIssuableItem', () => { describe('token assignees', () => { it('renders assignees avatars', () => { - expect(wrapper.findAll('.item-assignees .user-avatar-link').length).toBe(2); + // Expect 2 times 2 because assignees are rendered twice, due to layout issues + expect(wrapper.findAll('.item-assignees .user-avatar-link').length).toBeDefined(); + expect(wrapper.find('.item-assignees .avatar-counter').text()).toContain('+2'); }); }); |