mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
9f4aa472cf
* Select: Fix input cursor position so that it is at the start for single value selects * Fixing e2e tests * Fixes cursor issue * Fixing e2e tests * e2e fix * Select: ensure input always overlays singleValue, update pa11y config Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
36 lines
1018 B
TypeScript
36 lines
1018 B
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').type('gdev-jaeger{enter}');
|
|
|
|
e2e.components.QueryField.container().should('be.visible').type('long-trace');
|
|
|
|
e2e().wait(500);
|
|
|
|
e2e.components.RefreshPicker.runButtonV2().should('be.visible').click();
|
|
|
|
e2e().wait('@longTrace');
|
|
|
|
e2e.components.TraceViewer.spanBar().should('be.visible');
|
|
|
|
e2e.components.TraceViewer.spanBar()
|
|
.its('length')
|
|
.then((oldLength) => {
|
|
e2e.pages.Explore.General.scrollBar().scrollTo('center');
|
|
|
|
// After scrolling we should load more spans
|
|
e2e.components.TraceViewer.spanBar().its('length').should('be.gt', oldLength);
|
|
});
|
|
});
|
|
});
|