Commit 0610bb09 authored by Filipa Lacerda's avatar Filipa Lacerda

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
parents fc247b15 4cdef3da
...@@ -210,6 +210,19 @@ describe('Assignee component', () => { ...@@ -210,6 +210,19 @@ describe('Assignee component', () => {
expect(component.$el.querySelector('.user-list-more')).toBe(null); 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 => { it('Shows the "show-less" assignees label', done => {
const users = UsersMockHelper.createNumberRandomUsers(6); const users = UsersMockHelper.createNumberRandomUsers(6);
component = new AssigneeComponent({ component = new AssigneeComponent({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment