@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.
@@ -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(cy.wrap)
120
- .within(() => {
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@centreon/js-config",
3
3
  "description": "Centreon Frontend shared build configuration",
4
- "version": "26.12.2",
4
+ "version": "27.1.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon.git"
@@ -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']