@bigbinary/neeto-folders-frontend 2.2.3 → 2.2.4

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.
@@ -84,13 +84,16 @@ var AccessPill = function AccessPill(_ref) {
84
84
 
85
85
  var ACCESS_TYPES = [{
86
86
  value: "only_me",
87
- icon: Lock
87
+ icon: Lock,
88
+ dataTestId: "only-me"
88
89
  }, {
89
90
  value: "workspace",
90
- icon: Globe
91
+ icon: Globe,
92
+ dataTestId: "workspace"
91
93
  }, {
92
94
  value: "restricted",
93
- icon: Users
95
+ icon: Users,
96
+ dataTestId: "restricted"
94
97
  }];
95
98
  var CAPABILITIES = ["view", "manage"];
96
99
  var DEFAULT_CAPABILITY = "manage";
@@ -129,13 +132,15 @@ var AccessTypeCards = function AccessTypeCards(_ref) {
129
132
  onValueChange: onChange,
130
133
  children: ACCESS_TYPES.map(function (_ref2) {
131
134
  var type = _ref2.value,
132
- Icon = _ref2.icon;
135
+ Icon = _ref2.icon,
136
+ dataTestId = _ref2.dataTestId;
133
137
  return /*#__PURE__*/jsxs("div", {
134
138
  className: classNames("flex w-full cursor-pointer items-start justify-between gap-3 rounded-md border p-3", type === value ? "border-foreground ring-foreground ring-1" : "border-border"),
135
139
  onClick: function onClick(event) {
136
140
  return handleCardClick(event, type);
137
141
  },
138
142
  children: [/*#__PURE__*/jsx(RadioGroup.Item, {
143
+ dataTestId: dataTestId,
139
144
  value: type,
140
145
  helpText: t("access.dialog.descriptions.".concat(descriptionKey(type)), {
141
146
  name: ownerName
@@ -1075,6 +1080,7 @@ var AddEditPane = function AddEditPane(_ref) {
1075
1080
  className: "w-full space-y-5",
1076
1081
  children: [/*#__PURE__*/jsx(Input$1, {
1077
1082
  required: true,
1083
+ dataTestId: "folder-name",
1078
1084
  label: t("folders.name"),
1079
1085
  name: "name",
1080
1086
  ref: setFocusField
@@ -2213,14 +2219,17 @@ var FolderTile = function FolderTile(_ref) {
2213
2219
  var menuItems = [{
2214
2220
  key: "edit",
2215
2221
  label: t("common.edit"),
2222
+ "data-testid": "edit-menu-item",
2216
2223
  onClick: actionCallback(actions.onEdit)
2217
2224
  }, {
2218
2225
  key: "move",
2219
2226
  label: t("common.moveToFolder"),
2227
+ "data-testid": "move-to-folder-menu-item",
2220
2228
  onClick: actionCallback(actions.onMove)
2221
2229
  }, {
2222
2230
  key: "delete",
2223
2231
  label: t("common.delete"),
2232
+ "data-testid": "delete-menu-item",
2224
2233
  onClick: actionCallback(actions.onDelete)
2225
2234
  }];
2226
2235
  var metaInfo = [];