From e1444345711d0a40b561b44404df4e38f82d7121 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sun, 9 May 2021 18:23:57 -0400 Subject: [PATCH] tests: Use relative paths in `helper.init()` This avoids problems if Etherpad is served under a path like `/etherpad`. --- src/tests/frontend/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/frontend/helper.js b/src/tests/frontend/helper.js index 86af1ae58..be14e2b1d 100644 --- a/src/tests/frontend/helper.js +++ b/src/tests/frontend/helper.js @@ -7,11 +7,11 @@ const helper = {}; const jsLibraries = {}; helper.init = (cb) => { - $.get('/static/js/vendors/jquery.js').done((code) => { + $.get('../../static/js/vendors/jquery.js').done((code) => { // make sure we don't override existing jquery jsLibraries.jquery = `if(typeof $ === 'undefined') {\n${code}\n}`; - $.get('/tests/frontend/lib/sendkeys.js').done((code) => { + $.get('lib/sendkeys.js').done((code) => { jsLibraries.sendkeys = code; cb();