NodeGraph: Show node graph collapsed by default with trace view (#34491) (#34742)

* Show node graph collapsed by default with trace view

* Fix rename variable

* Change the message

* Add test

* Fix e2e test

* Remove expect in exemplars test

* Align icon

* review fixes

(cherry picked from commit 9dafd4f863)

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-05-26 18:53:47 +02:00
committed by GitHub
co-authored by Andrej Ocenas
parent cb9a36b91f
commit 52e2a2403f
6 changed files with 94 additions and 17 deletions
-2
View File
@@ -65,8 +65,6 @@ describe('Exemplars', () => {
e2e.components.DataSource.Prometheus.exemplarMarker().first().trigger('mouseover');
e2e().contains('Query with gdev-tempo').click();
e2e().get('[aria-label="Node: app"]').should('be.visible');
e2e.components.TraceViewer.spanBar().should('have.length', 11);
});
});
@@ -29,7 +29,7 @@ describe('Trace view', () => {
e2e.pages.Explore.General.scrollBar().scrollTo('center');
// After scrolling we should have 139 spans instead of the first 100
e2e.components.TraceViewer.spanBar().should('have.length', 139);
// After scrolling we should load more spans
e2e.components.TraceViewer.spanBar().should('have.length', 140);
});
});