diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-27 09:04:49 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-27 09:04:49 +0000 |
commit | 0610bb091766d3bb935fc10898dd66bc6f76b1c5 (patch) | |
tree | f7328dc75910301d76d4362e7449392ce019d64f | |
parent | fc247b15f01c2975a78a5bc70d627952cbeedbfe (diff) | |
parent | 4cdef3da6caa155cfd88447099c04caae1815da4 (diff) | |
download | gitlab-ce-0610bb091766d3bb935fc10898dd66bc6f76b1c5.tar.gz |
Merge branch 'winh-assignees_spec' into 'master'
Copy missing test in assignees_spec.js from EE
Closes gitlab-ee#6641
See merge request gitlab-org/gitlab-ce!26618
-rw-r--r-- | spec/javascripts/sidebar/assignees_spec.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/javascripts/sidebar/assignees_spec.js b/spec/javascripts/sidebar/assignees_spec.js index eced4925489..57b16b12cb0 100644 --- a/spec/javascripts/sidebar/assignees_spec.js +++ b/spec/javascripts/sidebar/assignees_spec.js @@ -210,6 +210,19 @@ describe('Assignee component', () => { expect(component.$el.querySelector('.user-list-more')).toBe(null); }); + it('sets tooltip container to body', () => { + const users = UsersMockHelper.createNumberRandomUsers(2); + component = new AssigneeComponent({ + propsData: { + rootPath: 'http://localhost:3000', + users, + editable: true, + }, + }).$mount(); + + expect(component.$el.querySelector('.user-link').getAttribute('data-container')).toBe('body'); + }); + it('Shows the "show-less" assignees label', done => { const users = UsersMockHelper.createNumberRandomUsers(6); component = new AssigneeComponent({ |