@centreon/js-config 23.10.3-feature-MON-18489.1 → 23.10.3-feature-MON-18489.3

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.
@@ -37,6 +37,13 @@ Cypress.Commands.add(
37
37
  }
38
38
  );
39
39
 
40
+ Cypress.Commands.add(
41
+ 'clickSubRootMenuItem',
42
+ (page: string): Cypress.Chainable => {
43
+ return cy.get('div[data-cy="collapse"]').eq(1).contains(page).click();
44
+ }
45
+ );
46
+
40
47
  interface NavigateToProps {
41
48
  page: string;
42
49
  rootItemNumber: number;
@@ -49,8 +56,8 @@ Cypress.Commands.add(
49
56
  if (subMenu) {
50
57
  cy.hoverRootMenuItem(rootItemNumber)
51
58
  .contains(subMenu)
52
- .trigger('mouseover', { force: true });
53
- cy.contains(page).click({ force: true });
59
+ .trigger('mouseover');
60
+ cy.clickSubRootMenuItem(page);
54
61
 
55
62
  return;
56
63
  }
@@ -342,6 +349,7 @@ Cypress.Commands.add(
342
349
  declare global {
343
350
  namespace Cypress {
344
351
  interface Chainable {
352
+ clickSubRootMenuItem: (page: string) => Cypress.Chainable;
345
353
  copyFromContainer: (props: CopyFromContainerProps) => Cypress.Chainable;
346
354
  copyToContainer: (props: CopyToContainerProps) => Cypress.Chainable;
347
355
  execInContainer: ({
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": "23.10.3-feature-MON-18489.1",
4
+ "version": "23.10.3-feature-MON-18489.3",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/centreon/centreon-frontend.git"