From 12d78558a728dec2a96f870b1491f1c1b37f4103 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Sat, 20 Apr 2024 08:34:32 -0400 Subject: [PATCH] Update shortenUrl Signed-off-by: Craig Perkins --- test/cypress/support/constants.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/cypress/support/constants.js b/test/cypress/support/constants.js index b357659c6..c7776a6c0 100644 --- a/test/cypress/support/constants.js +++ b/test/cypress/support/constants.js @@ -32,6 +32,8 @@ export const ADMIN_AUTH = { password: Cypress.env('adminPassword'), }; +const basePath = Cypress.env('basePath') || ''; + //Security API Constants export const SEC_API_PREFIX = '/_plugins/_security/api'; export const SEC_API = { @@ -43,4 +45,4 @@ export const SEC_API = { export const DASHBOARDS_API = { SHORTEN_URL: '/api/shorten_url', }; -export const SHORTEN_URL_DATA = { url: '/app/home#/tutorial_directory' }; +export const SHORTEN_URL_DATA = { url: `${basePath}/app/home#/tutorial_directory` };