File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,18 @@ import axios from '@nextcloud/axios'
16
16
const url = Cypress . config ( 'baseUrl' ) . replace ( / \/ i n d e x .p h p \/ ? $ / g, '' )
17
17
Cypress . env ( 'baseUrl' , url )
18
18
19
+ /**
20
+ * Ignore ResizeObserver loop limit exceeded' exceptions from browser
21
+ * See https://stackoverflow.com/q/49384120 for details
22
+ */
23
+ const resizeObserverLoopErrRe = / ^ [ ^ ( R e s i z e O b s e r v e r l o o p l i m i t e x c e e d e d ) ] /
24
+ Cypress . on ( 'uncaught:exception' , ( err ) => {
25
+ /* returning false here prevents Cypress from failing the test */
26
+ if ( resizeObserverLoopErrRe . test ( err . message ) ) {
27
+ return false
28
+ }
29
+ } )
30
+
19
31
/**
20
32
* Login a user to Nextcloud and visit a given route
21
33
*/
Original file line number Diff line number Diff line change @@ -25,10 +25,13 @@ import Collectives from './Collectives.vue'
25
25
import router from './router.js'
26
26
import store from './store/store.js'
27
27
import { sync } from 'vuex-router-sync'
28
+ import { generateFilePath } from '@nextcloud/router'
28
29
29
30
/** Global directives */
30
31
import VTooltip from '@nextcloud/vue/dist/Directives/Tooltip.js'
31
32
33
+ __webpack_public_path__ = generateFilePath ( 'collectives' , '' , 'js/' ) // eslint-disable-line
34
+
32
35
// Register global directives
33
36
Vue . directive ( 'Tooltip' , VTooltip )
34
37
You can’t perform that action at this time.
0 commit comments