Convert packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js to RTL (#49107)

* convert SpanBar tests to RTL and add testing-library/react dependency

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* fix

* use e2e selector everywhere

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
Chrysa Dikonimaki
2022-05-18 14:00:44 +02:00
committed by GitHub
parent 523b9ec44f
commit 6b4353f890
6 changed files with 28 additions and 26 deletions

View File

@@ -265,7 +265,7 @@ export const Components = {
placeholder: 'Choose starting day of the week',
},
TraceViewer: {
spanBar: () => '[data-test-id="SpanBar--wrapper"]',
spanBar: 'data-testid SpanBar--wrapper',
},
QueryField: { container: 'Query field' },
ValuePicker: {