diff options
Diffstat (limited to 'spec/frontend/sidebar/components/participants/participants_spec.js')
-rw-r--r-- | spec/frontend/sidebar/components/participants/participants_spec.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/frontend/sidebar/components/participants/participants_spec.js b/spec/frontend/sidebar/components/participants/participants_spec.js index 72d83ebeca4..2b0eac46313 100644 --- a/spec/frontend/sidebar/components/participants/participants_spec.js +++ b/spec/frontend/sidebar/components/participants/participants_spec.js @@ -63,6 +63,19 @@ describe('Participants component', () => { expect(findParticipantsAuthor()).toHaveLength(numberOfLessParticipants); }); + it('participants link has data attributes and class present for popover support', () => { + const numberOfLessParticipants = 2; + wrapper = mountComponent({ participants, numberOfLessParticipants }); + + const participantsLink = wrapper.find('.js-user-link'); + + expect(participantsLink.attributes()).toMatchObject({ + href: `${participant.web_url}`, + 'data-user-id': `${participant.id}`, + 'data-username': `${participant.username}`, + }); + }); + it('when only showing all participants, each has an avatar', async () => { wrapper = mountComponent({ participants, numberOfLessParticipants: 2 }); |