diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/files-app-settings.js | 3 | ||||
-rw-r--r-- | apps/files/src/main-personal-settings.js | 6 | ||||
-rw-r--r-- | apps/systemtags/js/admin.js | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/apps/files/src/files-app-settings.js b/apps/files/src/files-app-settings.js index daaafbcd6c3..0d8f84cb7a8 100644 --- a/apps/files/src/files-app-settings.js +++ b/apps/files/src/files-app-settings.js @@ -37,6 +37,9 @@ Object.assign(window.OCA.Files, { Settings: new Settings() }) Object.assign(window.OCA.Files.Settings, { Setting }) window.addEventListener('DOMContentLoaded', function() { + if (window.TESTING) { + return + } // Init Vue app // eslint-disable-next-line new Vue({ diff --git a/apps/files/src/main-personal-settings.js b/apps/files/src/main-personal-settings.js index af98d3bea49..b0176d5c30d 100644 --- a/apps/files/src/main-personal-settings.js +++ b/apps/files/src/main-personal-settings.js @@ -32,5 +32,7 @@ __webpack_nonce__ = btoa(getRequestToken()) Vue.prototype.t = t -const View = Vue.extend(PersonalSettings) -new View().$mount('#files-personal-settings') +if (!window.TESTING) { + const View = Vue.extend(PersonalSettings) + new View().$mount('#files-personal-settings') +} diff --git a/apps/systemtags/js/admin.js b/apps/systemtags/js/admin.js index 22d17343228..2409cb488de 100644 --- a/apps/systemtags/js/admin.js +++ b/apps/systemtags/js/admin.js @@ -179,6 +179,8 @@ })(); window.addEventListener('DOMContentLoaded', function() { - OCA.SystemTags.Admin.init(); + if (!window.TESTING) { + OCA.SystemTags.Admin.init(); + } }); |