@bigbinary/neeto-approvals-frontend 0.2.9 → 0.2.10

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/dist/index.js CHANGED
@@ -375,6 +375,7 @@ var STATUS_UPDATED_BY = {
375
375
  approved: t$1("neetoApprovals.common.approvedBy"),
376
376
  cancelled: t$1("neetoApprovals.common.cancelledBy")
377
377
  };
378
+ var DATA_CY_KEY = "data-cy";
378
379
 
379
380
  dayjs.extend(utc);
380
381
  dayjs.extend(timezone);
@@ -999,10 +1000,12 @@ var Form$1 = function Form(_ref) {
999
1000
  }))), /*#__PURE__*/React.createElement(Pane.Footer, {
1000
1001
  className: "flex gap-x-2"
1001
1002
  }, /*#__PURE__*/React.createElement(Button, {
1003
+ "data-cy": "neeto-approvals-templates-save-template-btn",
1002
1004
  label: t("neetoApprovals.buttons.saveChanges"),
1003
1005
  loading: isLoading,
1004
1006
  type: "submit"
1005
1007
  }), /*#__PURE__*/React.createElement(Button, {
1008
+ "data-cy": "neeto-approvals-templates-close-template-form-btn",
1006
1009
  label: t("neetoApprovals.buttons.cancel"),
1007
1010
  style: "text",
1008
1011
  onClick: onClose
@@ -1255,19 +1258,19 @@ var columnData = function columnData(_ref) {
1255
1258
  return e.stopPropagation();
1256
1259
  }
1257
1260
  },
1258
- menuItems: [{
1261
+ menuItems: [_defineProperty({
1259
1262
  key: "edit",
1260
1263
  label: i18next.t("neetoApprovals.common.edit"),
1261
1264
  onClick: function onClick(event) {
1262
1265
  return onEditClick(event, template);
1263
1266
  }
1264
- }, {
1267
+ }, DATA_CY_KEY, "neeto-approvals-templates-edit-template-btn"), _defineProperty({
1265
1268
  key: "delete",
1266
1269
  label: i18next.t("neetoApprovals.common.delete"),
1267
1270
  onClick: function onClick(event) {
1268
1271
  return onDeleteClick(event, template);
1269
1272
  }
1270
- }]
1273
+ }, DATA_CY_KEY, "neeto-approvals-templates-delete-template-btn")]
1271
1274
  }));
1272
1275
  }
1273
1276
  }, {
@@ -1440,6 +1443,7 @@ var createRoutes = function createRoutes(_ref) {
1440
1443
  actionBlock: function actionBlock() {
1441
1444
  var _t;
1442
1445
  return /*#__PURE__*/React.createElement(Button, {
1446
+ "data-cy": "neeto-approvals-templates-add-new-button",
1443
1447
  label: t$1("neetoApprovals.common.addNew_", {
1444
1448
  what: (_t = t$1("neetoApprovals.common.template", SINGULAR)) === null || _t === void 0 ? void 0 : _t.toLocaleLowerCase()
1445
1449
  }),