@centreon/ui 25.5.8 → 25.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "25.5.8",
3
+ "version": "25.6.0",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -97,7 +97,7 @@ export const CrudPageRoot = <
97
97
  {isDataEmpty && !isLoading ? (
98
98
  <DataTable.EmptyState
99
99
  aria-label="create"
100
- data-testid="create-agent-configuration"
100
+ buttonCreateTestId="create-crudpage"
101
101
  labels={{
102
102
  title: labels.welcome.title,
103
103
  description: labels.welcome.description,
@@ -19,12 +19,14 @@ type ListEmptyStateProps = {
19
19
  description?: string;
20
20
  };
21
21
  onCreate?: () => void;
22
+ buttonCreateTestId?: string;
22
23
  };
23
24
 
24
25
  const DataTableEmptyState = ({
25
26
  labels,
26
27
  onCreate,
27
- canCreate = true
28
+ canCreate = true,
29
+ buttonCreateTestId
28
30
  }: ListEmptyStateProps): ReactElement => {
29
31
  const { classes } = useStyles();
30
32
  const { t } = useTranslation();
@@ -47,6 +49,7 @@ const DataTableEmptyState = ({
47
49
  icon={<AddIcon />}
48
50
  iconVariant="start"
49
51
  onClick={() => onCreate?.()}
52
+ data-testid={buttonCreateTestId}
50
53
  >
51
54
  {t(labels.actions?.create || '')}
52
55
  </Button>