diff --git a/packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItem.test.js b/packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItem.test.js index 2d03716c98..9ad0828aef 100644 --- a/packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItem.test.js +++ b/packages/jaeger-ui/src/components/SearchTracePage/SearchResults/ResultItem.test.js @@ -40,3 +40,10 @@ it(' should not render any ServiceTags when there are no services' const serviceTags = wrapper.find(`[data-test="${markers.SERVICE_TAGS}"]`).find(Tag); expect(serviceTags).toHaveLength(0); }); + +it(' should render error icon on ServiceTags that have an error tag', () => { + trace.spans[0].tags.push({ key: 'error', value: true }); + const wrapper = shallow(); + const errorServiceTags = wrapper.find('.ResultItem--errorIcon').getElements(); + expect(errorServiceTags).toHaveLength(1); +});