summaryrefslogtreecommitdiff
path: root/spec/javascripts/sidebar
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-03-26 20:23:19 +0100
committerWinnie Hellmann <winnie@gitlab.com>2019-03-26 20:23:19 +0100
commit4cdef3da6caa155cfd88447099c04caae1815da4 (patch)
treee43effe1ba2628fbed115b3a1cca4b6c12bc59d5 /spec/javascripts/sidebar
parentb0a873aae627accd604fbc50db9d2c89f6b87dbe (diff)
downloadgitlab-ce-4cdef3da6caa155cfd88447099c04caae1815da4.tar.gz
Copy missing test in assignees_spec.js from EE
Diffstat (limited to 'spec/javascripts/sidebar')
-rw-r--r--spec/javascripts/sidebar/assignees_spec.js13
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({