mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TestData: Remove useEffect that triggeres query on component load (#28321)
* TestData: Remove useEffect that triggeres query on component load * Updated * Update e2e spec
This commit is contained in:
@@ -11,9 +11,20 @@ e2e.scenario({
|
||||
e2e.pages.Explore.General.container().should('have.length', 1);
|
||||
e2e.pages.Explore.General.runButton().should('have.length', 1);
|
||||
|
||||
e2e.components.DataSource.TestData.QueryTab.scenarioSelectContainer()
|
||||
.should('be.visible')
|
||||
.within(() => {
|
||||
e2e.components.Select.input()
|
||||
.should('be.visible')
|
||||
.click();
|
||||
|
||||
cy.contains('CSV Metric Values')
|
||||
.scrollIntoView()
|
||||
.should('be.visible')
|
||||
.click();
|
||||
});
|
||||
|
||||
const canvases = e2e().get('canvas');
|
||||
canvases.should('have.length', 2);
|
||||
|
||||
e2e.components.DataSource.TestData.QueryTab.noise().should('have.length', 1);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user