From 28fe4cca5bbcef16316d88d28485e57b77c18466 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Thu, 19 Oct 2023 13:40:19 -0700 Subject: [PATCH] [2.x][Discover] fix share link (#932) (#933) Because of opensearch-project/OpenSearch-Dashboards#5095, the URL parsing is handled differently on main branch and 2.x branch. Therefore, this cypress test on 2.x branch needs to be modified. Signed-off-by: Qingyang(Abby) Hu (cherry picked from commit 518ce68d3ebff732f23138ac2598d70898bdcdae) Co-authored-by: Qingyang(Abby) Hu --- .../apps/data_explorer/shared_links.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/shared_links.spec.js b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/shared_links.spec.js index 2adbfcdbb..e2b2dc39b 100644 --- a/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/shared_links.spec.js +++ b/cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/shared_links.spec.js @@ -75,7 +75,7 @@ describe('shared links', () => { it('should allow for copying the saved object URL', function () { const url = - 'http://localhost:5601/app/data-explorer/discover/#/view/ab12e3c0-f231-11e6-9486-733b1ac9221a?_g=%28filters%3A%21%28%29%2CrefreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%2Ctime%3A%28from%3A%272015-09-19T13%3A31%3A44.000Z%27%2Cto%3A%272015-09-24T01%3A31%3A44.000Z%27%29%29'; + "http://localhost:5601/app/data-explorer/discover/#/view/ab12e3c0-f231-11e6-9486-733b1ac9221a?_g=(filters%3A!()%2CrefreshInterval%3A(pause%3A!t%2Cvalue%3A0)%2Ctime%3A(from%3A'2015-09-19T13%3A31%3A44.000Z'%2Cto%3A'2015-09-24T01%3A31%3A44.000Z'))"; cy.getElementByTestId('exportAsSavedObject') .get('.euiRadio__input')