From 47781cc92922512b03003b132796f71aaced7226 Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Fri, 8 Nov 2019 14:15:41 +0000 Subject: [PATCH] Change treatment of space character in URLs jQuery changed it from using '+' to '%20' between versions 1 and 3. This updates the test to match. --- tests/javascripts/support/helpers/utilities.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/javascripts/support/helpers/utilities.js b/tests/javascripts/support/helpers/utilities.js index 9ec0f8015..c2e88877a 100644 --- a/tests/javascripts/support/helpers/utilities.js +++ b/tests/javascripts/support/helpers/utilities.js @@ -13,9 +13,7 @@ function getFormDataFromPairs (pairs) { }); - // Combine the pairs into a single string and replace all %-encoded spaces to - // the '+' character; matches the behaviour of browser form submissions. - return urlEncodedDataPairs.join('&').replace(/%20/g, '+'); + return urlEncodedDataPairs.join('&'); };