@centreon/js-config 26.12.2 → 27.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/commands.ts +3 -3
- package/package.json +1 -1
- package/rspack/base/index.js +0 -3
package/cypress/e2e/commands.ts
CHANGED
|
@@ -110,15 +110,15 @@ Cypress.Commands.add(
|
|
|
110
110
|
Cypress.Commands.add(
|
|
111
111
|
'waitForElementInIframe',
|
|
112
112
|
(iframeSelector, elementSelector) => {
|
|
113
|
+
// Return the visibility: within() yields the body, which passed the wait at once
|
|
113
114
|
cy.waitUntil(
|
|
114
115
|
() =>
|
|
115
116
|
cy
|
|
116
117
|
.get(iframeSelector)
|
|
117
118
|
.its('0.contentDocument.body')
|
|
118
119
|
.should('not.be.empty')
|
|
119
|
-
.then(
|
|
120
|
-
|
|
121
|
-
const element = Cypress.$(elementSelector);
|
|
120
|
+
.then((body) => {
|
|
121
|
+
const element = Cypress.$(body).find(elementSelector);
|
|
122
122
|
|
|
123
123
|
return element.length > 0 && element.is(':visible');
|
|
124
124
|
}),
|
package/package.json
CHANGED
package/rspack/base/index.js
CHANGED
|
@@ -94,9 +94,6 @@ const getBaseConfiguration = ({
|
|
|
94
94
|
].filter(Boolean),
|
|
95
95
|
resolve: {
|
|
96
96
|
alias: {
|
|
97
|
-
'@centreon/ui/fonts': path.resolve(
|
|
98
|
-
'./node_modules/@centreon/ui/public/fonts'
|
|
99
|
-
),
|
|
100
97
|
react: path.resolve('./node_modules/react')
|
|
101
98
|
},
|
|
102
99
|
extensions: ['.js', '.jsx', '.ts', '.tsx']
|