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