@gridsuite/commons-ui 0.116.0 → 0.116.1

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.
@@ -26,7 +26,18 @@ function Login({ onLoginClick, disabled }) {
26
26
  /* @__PURE__ */ jsx(FormattedMessage, { id: "login/login", defaultMessage: "login" }),
27
27
  " ?"
28
28
  ] }),
29
- /* @__PURE__ */ jsx(Button, { disabled, fullWidth: true, variant: "contained", sx: styles.submit, onClick: onLoginClick, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "login/connection", defaultMessage: "connection" }) })
29
+ /* @__PURE__ */ jsx(
30
+ Button,
31
+ {
32
+ "data-testid": "LoginButton",
33
+ disabled,
34
+ fullWidth: true,
35
+ variant: "contained",
36
+ sx: styles.submit,
37
+ onClick: onLoginClick,
38
+ children: /* @__PURE__ */ jsx(FormattedMessage, { id: "login/connection", defaultMessage: "connection" })
39
+ }
40
+ )
30
41
  ] }),
31
42
  /* @__PURE__ */ jsx(Box, { mt: 2, children: /* @__PURE__ */ jsxs(Typography, { variant: "body2", color: "textSecondary", align: "center", children: [
32
43
  "Copyright © ",
@@ -67,7 +67,8 @@ function DescriptionModificationDialog({
67
67
  name: FieldConstants.DESCRIPTION,
68
68
  label: "descriptionProperty",
69
69
  minRows: 3,
70
- rows: 3
70
+ rows: 3,
71
+ "data-testid": "DescriptionInputField"
71
72
  }
72
73
  ) })
73
74
  }
@@ -30,7 +30,8 @@ function DescriptionField({ expandingTextSx }) {
30
30
  label: "descriptionProperty",
31
31
  minRows: 3,
32
32
  rows: 3,
33
- sx: expandingTextSx
33
+ sx: expandingTextSx,
34
+ "data-testid": "DescriptionInputField"
34
35
  }
35
36
  ),
36
37
  /* @__PURE__ */ jsx(
@@ -3,7 +3,7 @@ import { useThemeProps, Button } from "@mui/material";
3
3
  import { FormattedMessage } from "react-intl";
4
4
  function CancelButton(inProps) {
5
5
  const props = useThemeProps({ props: inProps, name: "CancelButton" });
6
- return /* @__PURE__ */ jsx(Button, { ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
6
+ return /* @__PURE__ */ jsx(Button, { "data-testid": "CancelButton", ...props, children: /* @__PURE__ */ jsx(FormattedMessage, { id: "cancel" }) });
7
7
  }
8
8
  export {
9
9
  CancelButton
@@ -213,6 +213,7 @@ function TopBar({
213
213
  "aria-haspopup": "true",
214
214
  onClick: handleClickAppsMenu,
215
215
  color: "inherit",
216
+ "data-testid": "AppsMenu",
216
217
  children: /* @__PURE__ */ jsx(Apps, {})
217
218
  }
218
219
  ),
@@ -272,6 +273,7 @@ function TopBar({
272
273
  onClick: handleToggleSettingsMenu,
273
274
  color: "inherit",
274
275
  style: anchorElSettingsMenu ? { cursor: "initial" } : { cursor: "pointer" },
276
+ "data-testid": "SettingsMenu",
275
277
  children: [
276
278
  /* @__PURE__ */ jsx(Box, { component: "span", sx: styles.name, children: user.profile.name !== void 0 ? abbreviationFromUserName(user.profile.name) : "" }),
277
279
  anchorElSettingsMenu ? /* @__PURE__ */ jsx(ArrowDropUp, { sx: styles.arrowIcon }) : /* @__PURE__ */ jsx(ArrowDropDown, { sx: styles.arrowIcon })
@@ -283,11 +283,10 @@ function TreeViewFinderComponant(props) {
283
283
  },
284
284
  "aria-labelledby": "TreeViewFindertitle",
285
285
  className,
286
- classes: {
287
- paper: composeClasses(classes, cssDialogPaper)
288
- },
286
+ classes: { paper: composeClasses(classes, cssDialogPaper) },
287
+ "data-testid": "Dialog",
289
288
  children: [
290
- /* @__PURE__ */ jsx(DialogTitle, { id: "TreeViewFindertitle", children: title ?? intl.formatMessage({ id: "treeview_finder/finderTitle" }, { multiSelect }) }),
289
+ /* @__PURE__ */ jsx(DialogTitle, { id: "TreeViewFindertitle", "data-testid": "DialogTitle", children: title ?? intl.formatMessage({ id: "treeview_finder/finderTitle" }, { multiSelect }) }),
291
290
  /* @__PURE__ */ jsxs(DialogContent, { children: [
292
291
  /* @__PURE__ */ jsx(DialogContentText, { children: contentText ?? intl.formatMessage({ id: "treeview_finder/contentText" }, { multiSelect }) }),
293
292
  /* @__PURE__ */ jsx(
@@ -325,6 +324,7 @@ function TreeViewFinderComponant(props) {
325
324
  setAutoScrollAllowed(true);
326
325
  },
327
326
  disabled: isValidationDisabled(),
327
+ "data-testid": "SubmitButton",
328
328
  children: getValidationButtonText()
329
329
  }
330
330
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.116.0",
3
+ "version": "0.116.1",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",