From d201b047ebc51057cc071d6dc08ef9e40ee618e5 Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Fri, 16 Aug 2024 10:30:24 -0700 Subject: [PATCH 1/2] Fix panel test not respecting base path setting Signed-off-by: Simeon Widdis --- .../plugins/observability-dashboards/4_panels.spec.js | 2 +- 1 file changed, 1 insertion(+), 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..ee8700a96 100644 --- a/cypress/integration/plugins/observability-dashboards/4_panels.spec.js +++ b/cypress/integration/plugins/observability-dashboards/4_panels.spec.js @@ -30,7 +30,7 @@ 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') From a5d257065f0a7a8a34a9ae5e67b5e75515bd2195 Mon Sep 17 00:00:00 2001 From: Simeon Widdis Date: Fri, 16 Aug 2024 10:37:08 -0700 Subject: [PATCH 2/2] Apply prettier lints Signed-off-by: Simeon Widdis --- .../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 ee8700a96..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', `${BASE_PATH}/api/saved_objects/*`).as('createDashboard'); + cy.intercept('POST', `${BASE_PATH}/api/saved_objects/*`).as( + 'createDashboard' + ); cy.get('.euiButton__text') .contains(/^Create$/) .trigger('mouseover')