mirror of
https://github.com/grafana/grafana.git
synced 2024-12-28 01:41:24 -06:00
04a067e599
* TraceViewer: Fix show log marker in spanbar * Revert changes and use UITooltip and UIPopover * Change logmarker color * e2e: wait for trace view * Record cypress run ONLY FOR TESTING * Move fixture to e2e * Get details TEST ONLY * test * Use jaeger's theme instead of grafana's * Revert "Record cypress run ONLY FOR TESTING" This reverts commit35c087b3c5
. * Revert "Move fixture to e2e" This reverts commitfab88cc54c
.
36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
import { e2e } from '@grafana/e2e';
|
|
|
|
describe('Trace view', () => {
|
|
it('Can lazy load big traces', () => {
|
|
e2e.flows.login('admin', 'admin');
|
|
e2e()
|
|
.intercept('GET', '/api/traces/long-trace', {
|
|
fixture: 'long-trace-response.json',
|
|
})
|
|
.as('longTrace');
|
|
|
|
e2e.pages.Explore.visit();
|
|
|
|
e2e.components.DataSourcePicker.container()
|
|
.should('be.visible')
|
|
.within(() => {
|
|
e2e.components.Select.input().should('be.visible').click();
|
|
|
|
e2e().contains('gdev-jaeger').scrollIntoView().should('be.visible').click();
|
|
});
|
|
|
|
e2e.components.QueryField.container().should('be.visible').type('long-trace');
|
|
|
|
e2e.components.RefreshPicker.runButton().should('be.visible').click();
|
|
|
|
e2e().wait('@longTrace');
|
|
|
|
e2e.components.TraceViewer.spanBar().should('have.length', 100);
|
|
|
|
e2e.pages.Explore.General.scrollBar().scrollTo('center');
|
|
|
|
// After scrolling we should have 140 spans instead of the first 100
|
|
e2e.components.TraceViewer.spanBar().should('have.length', 140);
|
|
});
|
|
});
|