Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/sidebar/components/participants/participants_spec.js')
-rw-r--r--spec/frontend/sidebar/components/participants/participants_spec.js13
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 });