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:
Giordano Ricci 2022-12-19 14:21:00 +00:00 committed by GitHub
parent 645262d4a2
commit 785c857ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');
});
},
});