Skip to content
Snippets Groups Projects

Add simple dropdown component and change severity filter to use it

5 unresolved threads
@@ -26,13 +26,13 @@ describe('Severity Filter component', () => {
querystringKey: 'severity',
});
});
});
it('emits the filter-changed event when the dropdown updates selected IDs', async () => {
const ids = ['A', 'B', 'C'];
findDropdown().vm.$emit('selected-changed', ids);
await nextTick();
it('emits the filter-changed event when the dropdown changes selected IDs', async () => {
const ids = ['A', 'B', 'C'];
findDropdown().vm.$emit('selected-changed', ids);
await nextTick();
expect(wrapper.emitted('filter-changed')[0][0]).toEqual({ severity: ids });
expect(wrapper.emitted('filter-changed')[0][0]).toEqual({ severity: ids });
});
});
});
Loading