Fix select2 import for project import app namespace select

上级 813df901
<script>
import $ from 'jquery';
import 'select2/select2';
export default {
name: 'Select2Select',
......
......@@ -49,6 +49,19 @@ describe('ProviderRepoTableRow', () => {
expect(vm.$el.querySelector('.js-import-button')).not.toBeNull();
});
it('renders a select2 namespace select', () => {
vm = createComponent();
const dropdownTrigger = vm.$el.querySelector('.js-namespace-select');
expect(dropdownTrigger).not.toBeNull();
expect(dropdownTrigger.classList.contains('select2-container')).toBe(true);
dropdownTrigger.click();
expect(vm.$el.querySelector('.select2-drop')).not.toBeNull();
});
it('imports repo when clicking import button', done => {
const importPath = '/import-path';
const defaultTargetNamespace = 'user';
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册