From ff7db79ba776ad367bdb3c5f206285059dac8d0d Mon Sep 17 00:00:00 2001
From: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
Date: Tue, 30 Jan 2024 11:27:43 +0100
Subject: [PATCH] Replace deprecated `unescape` function in a Cypress helper
 (#38252)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/unescape
---
 e2e/support/helpers/e2e-ad-hoc-question-helpers.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/e2e/support/helpers/e2e-ad-hoc-question-helpers.js b/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
index 6514ac94866..884402bfd48 100644
--- a/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
+++ b/e2e/support/helpers/e2e-ad-hoc-question-helpers.js
@@ -13,7 +13,7 @@ export function adhocQuestionHash(question) {
     // without "locking" the display, the QB will run its picking logic and override the setting
     question = Object.assign({}, question, { displayIsLocked: true });
   }
-  return btoa(unescape(encodeURIComponent(JSON.stringify(question))));
+  return btoa(decodeURIComponent(encodeURIComponent(JSON.stringify(question))));
 }
 
 /**
-- 
GitLab