@centreon/ui 23.10.35 → 23.10.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "23.10.35",
3
+ "version": "23.10.36",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "eslint": "eslint ./src --ext .js,.jsx,.ts,.tsx --max-warnings 0",
@@ -12,6 +12,8 @@ import {
12
12
  CircularProgress
13
13
  } from '@mui/material';
14
14
 
15
+ import { DataTestAttributes } from '../@types/data-attributes';
16
+
15
17
  interface StylesProps {
16
18
  contentWidth?: number;
17
19
  }
@@ -47,7 +49,8 @@ export type Props = {
47
49
  onConfirm: (event, value?) => void;
48
50
  open: boolean;
49
51
  submitting?: boolean;
50
- } & DialogProps;
52
+ } & DialogProps &
53
+ DataTestAttributes;
51
54
 
52
55
  const Dialog = ({
53
56
  open,
@@ -95,7 +98,7 @@ const Dialog = ({
95
98
  {onCancel && (
96
99
  <Button
97
100
  color="primary"
98
- data-testid="cancel"
101
+ data-testid="Cancel"
99
102
  disabled={cancelDisabled}
100
103
  onClick={onCancel}
101
104
  >
@@ -106,7 +109,7 @@ const Dialog = ({
106
109
  aria-label={labelConfirm || ''}
107
110
  className={dialogConfirmButtonClassName}
108
111
  color="primary"
109
- data-testid="confirm"
112
+ data-testid="Confirm"
110
113
  disabled={confirmDisabled}
111
114
  endIcon={submitting && <CircularProgress size={15} />}
112
115
  onClick={onConfirm}