tests: Fix encoding of prefs cookie
parent
63e6e163b7
commit
5666c34061
|
@ -69,8 +69,9 @@ const helper = {};
|
||||||
// I don't fully understand it, but this function seems to properly simulate
|
// I don't fully understand it, but this function seems to properly simulate
|
||||||
// padCookie.setPref in the client code
|
// padCookie.setPref in the client code
|
||||||
helper.setPadPrefCookie = (prefs) => {
|
helper.setPadPrefCookie = (prefs) => {
|
||||||
|
const val = encodeURIComponent(JSON.stringify(prefs));
|
||||||
helper.padChrome$.document.cookie =
|
helper.padChrome$.document.cookie =
|
||||||
(`prefsHttp=${escape(JSON.stringify(prefs))};expires=Thu, 01 Jan 3000 00:00:00 GMT`);
|
`prefsHttp=${val};expires=Thu, 01 Jan 3000 00:00:00 GMT`;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Functionality for knowing what key event type is required for tests
|
// Functionality for knowing what key event type is required for tests
|
||||||
|
|
Loading…
Reference in New Issue