Explore: Refactor & centralize URL/state sync (#66286)

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
This commit is contained in:
Giordano Ricci
2023-06-06 15:31:39 +01:00
committed by GitHub
co-authored by Piotr Jamróz
parent 6900336f09
commit 067bbcbe56
42 changed files with 1360 additions and 1441 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ e2e.scenario({
cy.get('button[title="Delete query"]').each((button) => {
button.trigger('click');
});
cy.get('button[title="Delete query"]').should('not.exist');
e2e.components.QueryTab.queryHistoryButton().should('be.visible').click();
e2e.components.DataSource.TestData.QueryTab.scenarioSelectContainer()
@@ -36,7 +37,7 @@ e2e.scenario({
cy.get('body').click();
cy.get('body').type('t{leftarrow}');
cy.location().then((locPostKeypress) => {
cy.location().should((locPostKeypress) => {
const params = new URLSearchParams(locPostKeypress.search);
const leftJSON = JSON.parse(params.get('left'));
// be sure the keypress affected the time window