From ffdd6169e73f0aa13930ef76a703d972cb2088d7 Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Sun, 18 Aug 2024 18:00:19 -0700 Subject: [PATCH] Fix panel test not respecting base path setting (#1520) * Fix panel test not respecting base path setting Signed-off-by: Simeon Widdis * Apply prettier lints Signed-off-by: Simeon Widdis --------- Signed-off-by: Simeon Widdis (cherry picked from commit 4ff7b93a0b8adbb0200d8bd77bab55b9bd58cc61) --- .../plugins/observability-dashboards/4_panels.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js index 001c25f9f..4b63d5e54 100644 --- a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js +++ b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js @@ -30,7 +30,9 @@ describe('Testing panels table', () => { cy.get('input.euiFieldText').focus().type(TEST_PANEL, { delay: 50, }); - cy.intercept('POST', '/api/saved_objects/*').as('createDashboard'); + cy.intercept('POST', `${BASE_PATH}/api/saved_objects/*`).as( + 'createDashboard' + ); cy.get('.euiButton__text') .contains(/^Create$/) .trigger('mouseover')