Copy missing test in assignees_spec.js from EE
This commit is contained in:
parent
b0a873aae6
commit
4cdef3da6c
1 changed files with 13 additions and 0 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue