Commit 916984f0 authored by Daniel Tian's avatar Daniel Tian Committed by Savas Vedova

Do not truncate vulnerability report filter dropdown items

parent 86022ed9
<script>
import { GlDropdownItem, GlTruncate } from '@gitlab/ui';
import { GlDropdownItem } from '@gitlab/ui';
export default {
components: { GlDropdownItem, GlTruncate },
components: { GlDropdownItem },
props: {
isChecked: {
type: Boolean,
......@@ -29,8 +29,6 @@ export default {
:data-qa-selector="qaSelector"
@click.native.capture.stop="$emit('click')"
>
<slot>
<gl-truncate :text="text" />
</slot>
<slot>{{ text }}</slot>
</gl-dropdown-item>
</template>
......@@ -229,7 +229,7 @@ export default {
:is-checked="isSelected(project.id)"
@click="toggleOption(project)"
>
<div v-safe-html="highlightSearchTerm(project.name)" class="gl-text-truncate"></div>
<div v-safe-html="highlightSearchTerm(project.name)"></div>
</filter-item>
</template>
</filter-body>
......
......@@ -24,10 +24,10 @@ describe('Filter Item component', () => {
});
describe('name', () => {
it('shows the name when the name prop is passed in', () => {
it('shows the given text when the "text" prop is passed in', () => {
const text = 'some name';
createWrapper({ text });
expect(name().props('text')).toBe(text);
expect(wrapper.text()).toContain(text);
});
it('shows slot content when slot content is passed in', () => {
......
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