diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2019-03-26 20:23:19 +0100 |
---|---|---|
committer | Winnie Hellmann <winnie@gitlab.com> | 2019-03-26 20:23:19 +0100 |
commit | 4cdef3da6caa155cfd88447099c04caae1815da4 (patch) | |
tree | e43effe1ba2628fbed115b3a1cca4b6c12bc59d5 | |
parent | b0a873aae627accd604fbc50db9d2c89f6b87dbe (diff) | |
download | gitlab-ce-4cdef3da6caa155cfd88447099c04caae1815da4.tar.gz |
Copy missing test in assignees_spec.js from EE
-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({ |