From 62f82f332a246382c6ff2ab90760670d7101256a Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 7 Aug 2023 17:40:24 +0200 Subject: [PATCH 1/2] fix(webpack): set `__webpack_public_path__` Required for loading webpack chunks if the app is in a non-default apps folder (like `apps-extra/`). Signed-off-by: Jonas --- src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.js b/src/main.js index a5c6ed425..9840e5f8a 100644 --- a/src/main.js +++ b/src/main.js @@ -25,10 +25,13 @@ import Collectives from './Collectives.vue' import router from './router.js' import store from './store/store.js' import { sync } from 'vuex-router-sync' +import { generateFilePath } from '@nextcloud/router' /** Global directives */ import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' +__webpack_public_path__ = generateFilePath('collectives', '', 'js/') // eslint-disable-line + // Register global directives Vue.directive('Tooltip', VTooltip) From de0ba312a6a69628eba4d9638ff1fdfff998ee3b Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 9 Aug 2023 11:42:47 +0200 Subject: [PATCH 2/2] test(cypress): Ignore ResizeObserver loop limit exceeded exceptions These exceptions are thrown by the browser when it was not able to deliver all observations within a single animation. It can be ignored. Signed-off-by: Jonas --- cypress/support/commands.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cypress/support/commands.js b/cypress/support/commands.js index bd6cc0277..6a5718eff 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -16,6 +16,18 @@ import axios from '@nextcloud/axios' const url = Cypress.config('baseUrl').replace(/\/index.php\/?$/g, '') Cypress.env('baseUrl', url) +/** + * Ignore ResizeObserver loop limit exceeded' exceptions from browser + * See https://stackoverflow.com/q/49384120 for details + */ +const resizeObserverLoopErrRe = /^[^(ResizeObserver loop limit exceeded)]/ +Cypress.on('uncaught:exception', (err) => { + /* returning false here prevents Cypress from failing the test */ + if (resizeObserverLoopErrRe.test(err.message)) { + return false + } +}) + /** * Login a user to Nextcloud and visit a given route */