mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
QueryHistory: prevent query history tests from failing if the suite is rerun (#60462)
remove all queries from query history after running suite
This commit is contained in:
parent
645262d4a2
commit
785c857ec7
@ -47,5 +47,10 @@ e2e.scenario({
|
||||
// Both queries above should have been run and be shown in the query history
|
||||
e2e.components.QueryTab.queryHistoryButton().should('be.visible').click();
|
||||
e2e.components.QueryHistory.queryText().should('have.length', 2).should('contain', 'csv_metric_values');
|
||||
|
||||
// delete all queries
|
||||
cy.get('button[title="Delete query"]').each((button) => {
|
||||
button.trigger('click');
|
||||
});
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user