@bigbinary/neeto-rules-frontend 2.5.45 → 2.5.48

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.
@@ -83,7 +83,7 @@ var Body = function Body(_ref) {
83
83
  var children = _ref.children,
84
84
  className = _ref.className;
85
85
  return /*#__PURE__*/jsx("div", {
86
- "data-cy": "pane-body",
86
+ "data-testid": "pane-body",
87
87
  className: classNames("neeto-rules-side-panel__body grow overflow-y-auto p-6", _defineProperty({}, className, className)),
88
88
  children: children
89
89
  });
@@ -93,7 +93,7 @@ var Footer = function Footer(_ref) {
93
93
  var children = _ref.children,
94
94
  className = _ref.className;
95
95
  return /*#__PURE__*/jsx("div", {
96
- "data-cy": "pane-footer",
96
+ "data-testid": "pane-footer",
97
97
  className: classNames("neeto-rules-side-panel__footer neeto-ui-border-gray-200 flex items-center justify-between border-t p-6", className),
98
98
  children: children
99
99
  });
@@ -111,14 +111,14 @@ var Header = function Header(_ref) {
111
111
  var _useTranslation = useTranslation(),
112
112
  t = _useTranslation.t;
113
113
  return /*#__PURE__*/jsxs("div", {
114
- "data-cy": "pane-header",
114
+ "data-testid": "pane-header",
115
115
  className: classNames("neeto-rules-side-panel__header neeto-ui-border-gray-200 flex items-start justify-between border-b p-6", _defineProperty({}, className, className)),
116
116
  children: [/*#__PURE__*/jsx("div", {
117
117
  className: "flex min-w-0 grow",
118
118
  children: children
119
119
  }), /*#__PURE__*/jsx(Button, {
120
120
  className: "shrink-0 scale-x-[-1] rtl:rotate-180",
121
- "data-cy": "collapse-sidebar-button",
121
+ "data-testid": "collapse-sidebar-button",
122
122
  icon: Collapse,
123
123
  size: "medium",
124
124
  style: "text",
@@ -404,11 +404,11 @@ var ActionPanel = function ActionPanel() {
404
404
  children: /*#__PURE__*/jsxs("div", {
405
405
  className: "flex flex-col space-y-2",
406
406
  children: [/*#__PURE__*/jsxs(Typography, {
407
- "data-cy": "action-title",
407
+ "data-testid": "action-title",
408
408
  style: "h3",
409
409
  children: [label, "..."]
410
410
  }), /*#__PURE__*/jsx(Typography, {
411
- "data-cy": "action-description",
411
+ "data-testid": "action-description",
412
412
  style: "body2",
413
413
  children: t("neetoRules.form.addActionDescription")
414
414
  })]
@@ -419,7 +419,7 @@ var ActionPanel = function ActionPanel() {
419
419
  }),
420
420
  children: [(isSearchable || errorMessage) && /*#__PURE__*/jsxs(StickySidebarHeader, {
421
421
  children: [isSearchable && /*#__PURE__*/jsx(Input$1, {
422
- "data-cy": "search-text-field",
422
+ "data-testid": "search-text-field",
423
423
  placeholder: t("neetoRules.common.search"),
424
424
  prefix: /*#__PURE__*/jsx(Search, {}),
425
425
  value: searchTerm,
@@ -451,12 +451,12 @@ var ActionPanel = function ActionPanel() {
451
451
  })
452
452
  }) : /*#__PURE__*/jsx("div", {
453
453
  className: "py-1 text-sm",
454
- "data-cy": "no-options-menu-item",
454
+ "data-testid": "no-options-menu-item",
455
455
  children: t("neetoRules.common.noOptions")
456
456
  })]
457
457
  }), /*#__PURE__*/jsx(Panel.Footer, {
458
458
  children: /*#__PURE__*/jsx(Button, {
459
- "data-cy": "continue-button",
459
+ "data-testid": "continue-button",
460
460
  onClick: handleContinue,
461
461
  children: t("neetoRules.buttons.continue")
462
462
  })
@@ -537,12 +537,12 @@ var Target$k = function Target(_ref) {
537
537
  return /*#__PURE__*/jsxs(Fragment, {
538
538
  children: [separator && /*#__PURE__*/jsx(Typography, {
539
539
  className: "neeto-ui-text-gray-700",
540
- "data-cy": "long-text-action-separator-text",
540
+ "data-testid": "long-text-action-separator-text",
541
541
  style: "h5",
542
542
  weight: "normal",
543
543
  children: separator
544
544
  }), /*#__PURE__*/jsx(Button, {
545
- "data-cy": "long-text-action-button",
545
+ "data-testid": "long-text-action-button",
546
546
  label: label.toLowerCase(),
547
547
  style: "link",
548
548
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -777,7 +777,7 @@ var CustomHeaders = function CustomHeaders(_ref) {
777
777
  children: [/*#__PURE__*/jsx(Switch, _objectSpread$t({
778
778
  label: label,
779
779
  onFocus: onFocus,
780
- "data-cy": "neeto-rules-api-fields-".concat(hyphenate(label), "-switch"),
780
+ "data-testid": "neeto-rules-api-fields-".concat(hyphenate(label), "-switch"),
781
781
  name: switchName,
782
782
  onChange: handleChange
783
783
  }, withHelpPopover(helpPopoverProps))), isCustomHeadersEnabled && /*#__PURE__*/jsx(KeyValuePairsField, {
@@ -890,7 +890,7 @@ var JsonEditor = function JsonEditor(_ref) {
890
890
  className: "space-y-2",
891
891
  children: [/*#__PURE__*/jsx(Label, _objectSpread$s(_objectSpread$s({
892
892
  required: true,
893
- "data-cy": "api-field-body"
893
+ "data-testid": "api-field-body"
894
894
  }, isPresent(helpPopoverProps) && {
895
895
  helpIconProps: {
896
896
  icon: Help,
@@ -918,7 +918,7 @@ var JsonEditor = function JsonEditor(_ref) {
918
918
  onMount: handleEditorDidMount
919
919
  }), error && touched && /*#__PURE__*/jsx("div", {
920
920
  className: "neeto-ui-input__error",
921
- "data-cy": "json-field-input-error",
921
+ "data-testid": "json-field-input-error",
922
922
  children: error
923
923
  })]
924
924
  })]
@@ -947,7 +947,7 @@ var SaveAsTemplate = function SaveAsTemplate(_ref) {
947
947
  return /*#__PURE__*/jsxs("div", {
948
948
  className: classNames(["flex flex-col space-y-4", className]),
949
949
  children: [/*#__PURE__*/jsx(Switch, {
950
- "data-cy": "neeto-rules-save-as-template-switch",
950
+ "data-testid": "neeto-rules-save-as-template-switch",
951
951
  label: t("neetoRules.labels.saveAsTemplate"),
952
952
  name: switchName,
953
953
  onChange: handleChange
@@ -1054,12 +1054,12 @@ var Target$j = function Target(_ref) {
1054
1054
  return /*#__PURE__*/jsxs(Fragment, {
1055
1055
  children: [/*#__PURE__*/jsx(Typography, {
1056
1056
  className: "neeto-ui-text-gray-700",
1057
- "data-cy": "api-action-separator-text",
1057
+ "data-testid": "api-action-separator-text",
1058
1058
  style: "h5",
1059
1059
  weight: "normal",
1060
1060
  children: separator
1061
1061
  }), /*#__PURE__*/jsx(Button, {
1062
- "data-cy": "api-action-button",
1062
+ "data-testid": "api-action-button",
1063
1063
  label: defaultLabel.toLowerCase(),
1064
1064
  style: "link",
1065
1065
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1130,7 +1130,7 @@ var ApiFields = function ApiFields(_ref2) {
1130
1130
  }), /*#__PURE__*/jsx(Input$2, {
1131
1131
  required: true,
1132
1132
  className: "mb-4",
1133
- "data-cy": "api-action-endpoint-text-field",
1133
+ "data-testid": "api-action-endpoint-text-field",
1134
1134
  label: t("neetoRules.labels.endpoint"),
1135
1135
  name: "".concat(name, ".endpoint"),
1136
1136
  placeholder: SAMPLE_ENDPOINT,
@@ -1183,7 +1183,7 @@ var Target$i = function Target(_ref) {
1183
1183
  weight: "normal",
1184
1184
  children: separator
1185
1185
  }), /*#__PURE__*/jsx(Button, {
1186
- "data-cy": "custom-action-button-".concat(hyphenate(defaultLabel)),
1186
+ "data-testid": "custom-action-button-".concat(hyphenate(defaultLabel)),
1187
1187
  label: defaultLabel.toLowerCase(),
1188
1188
  style: "link",
1189
1189
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1240,7 +1240,7 @@ var Target$h = function Target(_ref) {
1240
1240
  return /*#__PURE__*/jsxs(Fragment, {
1241
1241
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1242
1242
  className: "neeto-ui-text-gray-700",
1243
- "data-cy": "action-dropdown-seperator-text",
1243
+ "data-testid": "action-dropdown-seperator-text",
1244
1244
  style: "h5",
1245
1245
  weight: "normal",
1246
1246
  children: separator
@@ -1361,7 +1361,7 @@ var EditorAction = function EditorAction(_ref) {
1361
1361
  variables: variables,
1362
1362
  hideSlashCommands: true,
1363
1363
  className: "w-full",
1364
- "data-cy": "neeto-editor",
1364
+ "data-testid": "neeto-editor",
1365
1365
  key: name,
1366
1366
  ref: editorRef,
1367
1367
  onChange: setEditorData
@@ -1407,12 +1407,12 @@ var Target$g = function Target(_ref) {
1407
1407
  return /*#__PURE__*/jsxs(Fragment, {
1408
1408
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1409
1409
  className: "neeto-ui-text-gray-700",
1410
- "data-cy": "action-dropdown-seperator-text",
1410
+ "data-testid": "action-dropdown-seperator-text",
1411
1411
  style: "h5",
1412
1412
  weight: "normal",
1413
1413
  children: separator
1414
1414
  }), /*#__PURE__*/jsx(Button, {
1415
- "data-cy": "action-dropdown-button",
1415
+ "data-testid": "action-dropdown-button",
1416
1416
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
1417
1417
  style: "link",
1418
1418
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1480,7 +1480,7 @@ var SelectField$2 = function SelectField(_ref2) {
1480
1480
  onFocus: setFieldActive
1481
1481
  })), handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsx(Button, {
1482
1482
  className: "mt-[22px]",
1483
- "data-cy": "refresh-slack-button",
1483
+ "data-testid": "refresh-slack-button",
1484
1484
  icon: Refresh,
1485
1485
  size: "medium",
1486
1486
  style: "secondary",
@@ -1526,12 +1526,12 @@ var Target$f = function Target(_ref) {
1526
1526
  return /*#__PURE__*/jsxs(Fragment, {
1527
1527
  children: [/*#__PURE__*/jsx(Typography, {
1528
1528
  className: "neeto-ui-text-gray-700",
1529
- "data-cy": "action-email-seperator-text",
1529
+ "data-testid": "action-email-seperator-text",
1530
1530
  style: "h5",
1531
1531
  weight: "normal",
1532
1532
  children: separator
1533
1533
  }), /*#__PURE__*/jsx(Button, {
1534
- "data-cy": "email-action-button",
1534
+ "data-testid": "email-action-button",
1535
1535
  label: defaultLabel.toLowerCase(),
1536
1536
  style: "link",
1537
1537
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1630,7 +1630,7 @@ var EmailFields = function EmailFields(_ref2) {
1630
1630
  }), !selectedField.hideSubject && /*#__PURE__*/jsx(Input$2, {
1631
1631
  required: true,
1632
1632
  className: "mb-4",
1633
- "data-cy": "email-action-subject-text-field",
1633
+ "data-testid": "email-action-subject-text-field",
1634
1634
  label: t("neetoRules.labels.subject"),
1635
1635
  name: "".concat(name, ".subject"),
1636
1636
  ref: isFirstFieldInForm("subject") ? initialFocusRef : null,
@@ -1678,13 +1678,13 @@ var Target$e = function Target(_ref) {
1678
1678
  return /*#__PURE__*/jsxs(Fragment, {
1679
1679
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1680
1680
  className: "neeto-ui-text-gray-700 mt-1",
1681
- "data-cy": "action-dropdown-seperator-text",
1681
+ "data-testid": "action-dropdown-seperator-text",
1682
1682
  style: "h5",
1683
1683
  weight: "normal",
1684
1684
  children: separator
1685
1685
  }), /*#__PURE__*/jsx(Button, {
1686
1686
  label: label,
1687
- "data-cy": "action-value-input-button",
1687
+ "data-testid": "action-value-input-button",
1688
1688
  style: "link",
1689
1689
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
1690
1690
  "neeto-ui-text-accent-800": isFieldActive,
@@ -1793,7 +1793,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1793
1793
  autoFocus: true,
1794
1794
  required: true,
1795
1795
  className: "neeto-planner-inline-input",
1796
- "data-cy": "inline-input-field",
1796
+ "data-testid": "inline-input-field",
1797
1797
  value: inputValue,
1798
1798
  ref: function ref(node) {
1799
1799
  inputFieldEscapeHotkeyRef.current = node;
@@ -1805,7 +1805,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1805
1805
  }, otherProps), {}, {
1806
1806
  suffix: /*#__PURE__*/jsxs(Fragment, {
1807
1807
  children: [/*#__PURE__*/jsx(Button, {
1808
- "data-cy": "inline-input-submit-button",
1808
+ "data-testid": "inline-input-submit-button",
1809
1809
  disabled: !isValidValue,
1810
1810
  icon: Check,
1811
1811
  style: "text",
@@ -1813,7 +1813,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1813
1813
  onClick: onSubmit
1814
1814
  }), /*#__PURE__*/jsx(Button, {
1815
1815
  ref: ref,
1816
- "data-cy": "inline-input-cancel-button",
1816
+ "data-testid": "inline-input-cancel-button",
1817
1817
  icon: Close,
1818
1818
  style: "text",
1819
1819
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
@@ -1849,12 +1849,12 @@ var Target$d = function Target(_ref) {
1849
1849
  return /*#__PURE__*/jsxs(Fragment, {
1850
1850
  children: [/*#__PURE__*/jsx(Typography, {
1851
1851
  className: "neeto-ui-text-gray-700",
1852
- "data-cy": "list-action-separator-text",
1852
+ "data-testid": "list-action-separator-text",
1853
1853
  style: "h5",
1854
1854
  weight: "normal",
1855
1855
  children: separator
1856
1856
  }), /*#__PURE__*/jsx(Button, {
1857
- "data-cy": "list-action-button",
1857
+ "data-testid": "list-action-button",
1858
1858
  label: t("neetoRules.form.list"),
1859
1859
  style: "link",
1860
1860
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1895,12 +1895,12 @@ var ListField = function ListField(_ref2) {
1895
1895
  className: "neeto-ui-bg-white flex flex-wrap justify-between border border-dashed px-2 py-1",
1896
1896
  children: [/*#__PURE__*/jsx(Typography, {
1897
1897
  className: "w-4/5 overflow-x-auto",
1898
- "data-cy": "list-action-item-label",
1898
+ "data-testid": "list-action-item-label",
1899
1899
  style: "body2",
1900
1900
  children: item
1901
1901
  }), /*#__PURE__*/jsx(Button, {
1902
1902
  className: "shrink-0",
1903
- "data-cy": "list-action-delete-item-button",
1903
+ "data-testid": "list-action-delete-item-button",
1904
1904
  icon: Delete,
1905
1905
  size: "medium",
1906
1906
  style: "text",
@@ -1915,7 +1915,7 @@ var ListField = function ListField(_ref2) {
1915
1915
  children: function children(message) {
1916
1916
  return /*#__PURE__*/jsx(Typography, {
1917
1917
  className: "neeto-ui-text-error-500 neeto-ui-text-gray-700",
1918
- "data-cy": "list-action-error-message",
1918
+ "data-testid": "list-action-error-message",
1919
1919
  style: "h5",
1920
1920
  children: message
1921
1921
  });
@@ -1929,7 +1929,7 @@ var ListField = function ListField(_ref2) {
1929
1929
  }
1930
1930
  }) : /*#__PURE__*/jsx(Button, {
1931
1931
  ref: ref,
1932
- "data-cy": "list-action-add-item-button",
1932
+ "data-testid": "list-action-add-item-button",
1933
1933
  icon: Plus,
1934
1934
  label: t("neetoRules.common.addItem"),
1935
1935
  size: "medium",
@@ -1976,7 +1976,7 @@ var Target$c = function Target(_ref) {
1976
1976
  return /*#__PURE__*/jsxs(Fragment, {
1977
1977
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1978
1978
  className: "neeto-ui-text-gray-700",
1979
- "data-cy": "multi-select-action-separator-text",
1979
+ "data-testid": "multi-select-action-separator-text",
1980
1980
  style: "h5",
1981
1981
  weight: "normal",
1982
1982
  children: separator
@@ -1996,7 +1996,7 @@ var Target$c = function Target(_ref) {
1996
1996
  what: ""
1997
1997
  })
1998
1998
  }), /*#__PURE__*/jsx(Button, {
1999
- "data-cy": "multi-select-action-button",
1999
+ "data-testid": "multi-select-action-button",
2000
2000
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2001
2001
  style: "link",
2002
2002
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2105,7 +2105,7 @@ var Target$b = function Target(_ref) {
2105
2105
  return /*#__PURE__*/jsxs(Fragment, {
2106
2106
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
2107
2107
  className: "neeto-ui-text-gray-700",
2108
- "data-cy": "multi-select-action-separator-text",
2108
+ "data-testid": "multi-select-action-separator-text",
2109
2109
  style: "h5",
2110
2110
  weight: "normal",
2111
2111
  children: separator
@@ -2125,7 +2125,7 @@ var Target$b = function Target(_ref) {
2125
2125
  what: ""
2126
2126
  })
2127
2127
  }), /*#__PURE__*/jsx(Button, {
2128
- "data-cy": "multi-select-action-button",
2128
+ "data-testid": "multi-select-action-button",
2129
2129
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2130
2130
  style: "link",
2131
2131
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2191,7 +2191,7 @@ var MultiSelectCheckbox$1 = function MultiSelectCheckbox(_ref2) {
2191
2191
  return /*#__PURE__*/createElement(Checkbox, {
2192
2192
  ref: ref,
2193
2193
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
2194
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
2194
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
2195
2195
  id: option.value,
2196
2196
  key: option.value,
2197
2197
  label: option.label,
@@ -2235,12 +2235,12 @@ var Target$a = function Target(_ref) {
2235
2235
  return /*#__PURE__*/jsxs(Fragment, {
2236
2236
  children: [/*#__PURE__*/jsx(Typography, {
2237
2237
  className: "neeto-ui-text-gray-700",
2238
- "data-cy": "note-action-separator-text",
2238
+ "data-testid": "note-action-separator-text",
2239
2239
  style: "h5",
2240
2240
  weight: "normal",
2241
2241
  children: separator
2242
2242
  }), /*#__PURE__*/jsx(Button, {
2243
- "data-cy": "note-action-button",
2243
+ "data-testid": "note-action-button",
2244
2244
  label: defaultLabel.toLowerCase(),
2245
2245
  style: "link",
2246
2246
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2315,12 +2315,12 @@ var Target$9 = function Target(_ref) {
2315
2315
  return /*#__PURE__*/jsxs(Fragment, {
2316
2316
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
2317
2317
  className: "neeto-ui-text-gray-700",
2318
- "data-cy": "action-radio-seperator-text",
2318
+ "data-testid": "action-radio-seperator-text",
2319
2319
  style: "h5",
2320
2320
  weight: "normal",
2321
2321
  children: separator
2322
2322
  }), /*#__PURE__*/jsx(Button, {
2323
- "data-cy": "action-radio-button",
2323
+ "data-testid": "action-radio-button",
2324
2324
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2325
2325
  style: "link",
2326
2326
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2448,7 +2448,7 @@ var STYLES = {
2448
2448
  };
2449
2449
  var MultiValueRemove = function MultiValueRemove(props) {
2450
2450
  return /*#__PURE__*/jsx(components.MultiValueRemove, _objectSpread$m(_objectSpread$m({}, props), {}, {
2451
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "".concat(dasherize(props.data.label), "-remove-icon"))),
2451
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "".concat(dasherize(props.data.label), "-remove-icon"))),
2452
2452
  children: /*#__PURE__*/jsx(Close, {
2453
2453
  size: 16
2454
2454
  })
@@ -2469,7 +2469,7 @@ var ValueContainer = function ValueContainer(_ref) {
2469
2469
  rest = _children.slice(1);
2470
2470
  var shouldCollapse = !isFocused && value.length > visiblePhoneNumbersCount;
2471
2471
  return /*#__PURE__*/jsxs(components.ValueContainer, _objectSpread$m(_objectSpread$m({}, props), {}, {
2472
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "multi-phone-number-input-container")),
2472
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "multi-phone-number-input-container")),
2473
2473
  children: [shouldCollapse ? firstChild.slice(0, visiblePhoneNumbersCount) : firstChild, shouldCollapse && /*#__PURE__*/jsx(Tag, {
2474
2474
  style: "secondary",
2475
2475
  label: t("neetoRules.labels.remainingItemsCount", {
@@ -2480,7 +2480,7 @@ var ValueContainer = function ValueContainer(_ref) {
2480
2480
  };
2481
2481
  var ClearIndicator = function ClearIndicator(props) {
2482
2482
  return /*#__PURE__*/jsx(components.ClearIndicator, _objectSpread$m(_objectSpread$m({}, props), {}, {
2483
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "clear-all-button")),
2483
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "clear-all-button")),
2484
2484
  children: /*#__PURE__*/jsx(Close, {
2485
2485
  className: "cursor-pointer",
2486
2486
  size: 16
@@ -2571,7 +2571,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2571
2571
  children: /*#__PURE__*/jsx(Label, {
2572
2572
  required: true,
2573
2573
  className: "neeto-ui-email-input__label",
2574
- "data-cy": "".concat(dasherize(label), "-input-label"),
2574
+ "data-testid": "".concat(dasherize(label), "-input-label"),
2575
2575
  children: label
2576
2576
  })
2577
2577
  }), /*#__PURE__*/jsx(CreatableSelect, _objectSpread$l({
@@ -2607,7 +2607,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2607
2607
  value: value
2608
2608
  }, otherProps))), !!error && /*#__PURE__*/jsxs("p", {
2609
2609
  className: "neeto-ui-input__error",
2610
- "data-cy": "".concat(dasherize(label), "-input-error"),
2610
+ "data-testid": "".concat(dasherize(label), "-input-error"),
2611
2611
  children: [formatErrorMessage(error), isFilterPhoneNumbersLinkVisible && /*#__PURE__*/jsxs("span", {
2612
2612
  className: "neeto-ui-font-semibold cursor-pointer",
2613
2613
  onClick: handleFilterPhoneNumbers,
@@ -2615,7 +2615,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2615
2615
  })]
2616
2616
  }), /*#__PURE__*/jsx("p", {
2617
2617
  className: "neeto-ui-input__help-text",
2618
- "data-cy": "".concat(dasherize(label), "-input-help"),
2618
+ "data-testid": "".concat(dasherize(label), "-input-help"),
2619
2619
  children: t("neetoRules.helpTexts.phoneNumber")
2620
2620
  })]
2621
2621
  });
@@ -2690,12 +2690,12 @@ var Target$8 = function Target(_ref) {
2690
2690
  return /*#__PURE__*/jsxs(Fragment, {
2691
2691
  children: [/*#__PURE__*/jsx(Typography, {
2692
2692
  className: "neeto-ui-text-gray-700",
2693
- "data-cy": "sms-action-separator-text",
2693
+ "data-testid": "sms-action-separator-text",
2694
2694
  style: "h5",
2695
2695
  weight: "normal",
2696
2696
  children: separator
2697
2697
  }), /*#__PURE__*/jsx(Button, {
2698
- "data-cy": "sms-action-button",
2698
+ "data-testid": "sms-action-button",
2699
2699
  label: defaultLabel.toLowerCase(),
2700
2700
  style: "link",
2701
2701
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3229,7 +3229,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3229
3229
  className: "flex items-center space-x-2",
3230
3230
  children: [/*#__PURE__*/jsx(Button, {
3231
3231
  className: "shrink-0 rtl:rotate-180",
3232
- "data-cy": "back-button",
3232
+ "data-testid": "back-button",
3233
3233
  icon: Left,
3234
3234
  size: "medium",
3235
3235
  style: "text",
@@ -3247,12 +3247,12 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3247
3247
  }));
3248
3248
  }
3249
3249
  }), /*#__PURE__*/jsx(Typography, {
3250
- "data-cy": "action-sub-item-title",
3250
+ "data-testid": "action-sub-item-title",
3251
3251
  style: "h3",
3252
3252
  children: header
3253
3253
  })]
3254
3254
  }), /*#__PURE__*/jsx(Typography, {
3255
- "data-cy": "action-sub-item-description",
3255
+ "data-testid": "action-sub-item-description",
3256
3256
  style: "body2",
3257
3257
  children: t("neetoRules.form.addActionSubItemDescription")
3258
3258
  })]
@@ -3281,7 +3281,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3281
3281
  })]
3282
3282
  }), /*#__PURE__*/jsx(Panel.Footer, {
3283
3283
  children: /*#__PURE__*/jsx(Button, {
3284
- "data-cy": "continue-button",
3284
+ "data-testid": "continue-button",
3285
3285
  onClick: handleContinue,
3286
3286
  children: t("neetoRules.buttons.continue")
3287
3287
  })
@@ -3317,6 +3317,7 @@ var Target$7 = function Target(_ref) {
3317
3317
  var isFieldInvalid = meta.touched && meta.error;
3318
3318
  return /*#__PURE__*/jsx(Button, {
3319
3319
  label: label,
3320
+ "data-testid": "condition-value-select-date-button",
3320
3321
  style: "link",
3321
3322
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3322
3323
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3412,7 +3413,7 @@ var Target$6 = function Target(_ref) {
3412
3413
  var label = valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
3413
3414
  return /*#__PURE__*/jsx(Button, {
3414
3415
  label: label,
3415
- "data-cy": "condition-value-input-button",
3416
+ "data-testid": "condition-value-input-button",
3416
3417
  style: "link",
3417
3418
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3418
3419
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3490,7 +3491,7 @@ var Target$5 = function Target(_ref) {
3490
3491
  weight: "normal",
3491
3492
  children: t("neetoRules.common.or")
3492
3493
  }), /*#__PURE__*/jsx(Button, {
3493
- "data-cy": "condition-value-multi-select-field",
3494
+ "data-testid": "condition-value-multi-select-field",
3494
3495
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3495
3496
  style: "link",
3496
3497
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3505,7 +3506,7 @@ var Target$5 = function Target(_ref) {
3505
3506
  }, idx);
3506
3507
  })
3507
3508
  }) : /*#__PURE__*/jsx(Button, {
3508
- "data-cy": "condition-value-multi-select-field",
3509
+ "data-testid": "condition-value-multi-select-field",
3509
3510
  label: defaultLabel,
3510
3511
  style: "link",
3511
3512
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3598,7 +3599,7 @@ var Target$4 = function Target(_ref) {
3598
3599
  weight: "normal",
3599
3600
  children: t("neetoRules.common.or")
3600
3601
  }), /*#__PURE__*/jsx(Button, {
3601
- "data-cy": "condition-value-multi-select-field",
3602
+ "data-testid": "condition-value-multi-select-field",
3602
3603
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3603
3604
  style: "link",
3604
3605
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3613,7 +3614,7 @@ var Target$4 = function Target(_ref) {
3613
3614
  }, idx);
3614
3615
  })
3615
3616
  }) : /*#__PURE__*/jsx(Button, {
3616
- "data-cy": "condition-value-multi-select-field",
3617
+ "data-testid": "condition-value-multi-select-field",
3617
3618
  label: defaultLabel,
3618
3619
  style: "link",
3619
3620
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3665,7 +3666,7 @@ var MultiSelectCheckbox = function MultiSelectCheckbox(_ref2) {
3665
3666
  return /*#__PURE__*/createElement(Checkbox, _objectSpread$i({
3666
3667
  ref: ref,
3667
3668
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
3668
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
3669
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
3669
3670
  id: option.value,
3670
3671
  key: option.value,
3671
3672
  label: option.label,
@@ -3753,7 +3754,7 @@ var Target$3 = function Target(_ref) {
3753
3754
  weight: "normal",
3754
3755
  children: t("neetoRules.common.or")
3755
3756
  }), /*#__PURE__*/jsx(Button, {
3756
- "data-cy": "condition-value-multi-select-field",
3757
+ "data-testid": "condition-value-multi-select-field",
3757
3758
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3758
3759
  style: "link",
3759
3760
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3768,7 +3769,7 @@ var Target$3 = function Target(_ref) {
3768
3769
  }, idx);
3769
3770
  })
3770
3771
  }) : /*#__PURE__*/jsx(Button, {
3771
- "data-cy": "condition-value-multi-select-field",
3772
+ "data-testid": "condition-value-multi-select-field",
3772
3773
  label: defaultLabel,
3773
3774
  style: "link",
3774
3775
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3812,7 +3813,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref2) {
3812
3813
  isCreateable: true,
3813
3814
  isMulti: true,
3814
3815
  className: "mt-4 w-full",
3815
- "data-cy": "multi-select-create-container",
3816
+ "data-testid": "multi-select-create-container",
3816
3817
  innerRef: ref,
3817
3818
  label: t("neetoRules.labels.selectValues"),
3818
3819
  placeholder: t("neetoRules.placeholders.multiSelect"),
@@ -3856,7 +3857,7 @@ var Target$2 = function Target(_ref) {
3856
3857
  };
3857
3858
  }, [field.value, options]);
3858
3859
  return /*#__PURE__*/jsx(Button, _objectSpread$h({
3859
- "data-cy": "condition-value-dropdown-button",
3860
+ "data-testid": "condition-value-dropdown-button",
3860
3861
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3861
3862
  style: "link",
3862
3863
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3915,7 +3916,7 @@ var RadioField$1 = function RadioField(_ref2) {
3915
3916
  className: "w-full",
3916
3917
  children: [isSearchable && /*#__PURE__*/jsx(StickySidebarHeader, {
3917
3918
  children: /*#__PURE__*/jsx(Input$1, {
3918
- "data-cy": "search-text-field",
3919
+ "data-testid": "search-text-field",
3919
3920
  placeholder: t("neetoRules.common.search"),
3920
3921
  prefix: /*#__PURE__*/jsx(Search, {}),
3921
3922
  value: searchTerm,
@@ -3946,7 +3947,7 @@ var RadioField$1 = function RadioField(_ref2) {
3946
3947
  })
3947
3948
  })) : /*#__PURE__*/jsx("div", {
3948
3949
  className: "py-1 text-sm",
3949
- "data-cy": "no-options-menu-item",
3950
+ "data-testid": "no-options-menu-item",
3950
3951
  children: t("neetoRules.common.noOptions")
3951
3952
  })]
3952
3953
  });
@@ -3960,8 +3961,8 @@ var Target$1 = function Target(_ref) {
3960
3961
  placeholder = _ref.placeholder,
3961
3962
  _ref$onClick = _ref.onClick,
3962
3963
  _onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
3963
- _ref$dataCy = _ref.dataCy,
3964
- dataCy = _ref$dataCy === void 0 ? "condition-verb-dropdown-button" : _ref$dataCy;
3964
+ _ref$dataTestid = _ref.dataTestid,
3965
+ dataTestid = _ref$dataTestid === void 0 ? "condition-verb-dropdown-button" : _ref$dataTestid;
3965
3966
  var _useTranslation = useTranslation(),
3966
3967
  t = _useTranslation.t;
3967
3968
  var _useField = useField(name),
@@ -3983,7 +3984,7 @@ var Target$1 = function Target(_ref) {
3983
3984
  };
3984
3985
  }, [field.value, dropdownOptions]);
3985
3986
  return /*#__PURE__*/jsx(Button, {
3986
- "data-cy": dataCy,
3987
+ "data-testid": dataTestid,
3987
3988
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3988
3989
  style: "link",
3989
3990
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -4074,6 +4075,7 @@ var Target = function Target(_ref) {
4074
4075
  var isFieldInvalid = meta.touched && meta.error;
4075
4076
  return /*#__PURE__*/jsx(Button, {
4076
4077
  label: label,
4078
+ "data-testid": "condition-value-select-time-button",
4077
4079
  style: "link",
4078
4080
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
4079
4081
  "neeto-ui-text-accent-800": isFieldActive,
@@ -4194,11 +4196,11 @@ var FieldPanel = function FieldPanel() {
4194
4196
  children: /*#__PURE__*/jsxs("div", {
4195
4197
  className: "flex flex-col space-y-2",
4196
4198
  children: [/*#__PURE__*/jsxs(Typography, {
4197
- "data-cy": "condition-title",
4199
+ "data-testid": "condition-title",
4198
4200
  style: "h3",
4199
4201
  children: [index ? logicalOperatorLabel : conditionLabel, "..."]
4200
4202
  }), /*#__PURE__*/jsx(Typography, {
4201
- "data-cy": "condition-description",
4203
+ "data-testid": "condition-description",
4202
4204
  style: "body2",
4203
4205
  children: t("neetoRules.form.addConditionDescription")
4204
4206
  })]
@@ -4218,7 +4220,7 @@ var FieldPanel = function FieldPanel() {
4218
4220
  })
4219
4221
  }), /*#__PURE__*/jsx(Panel.Footer, {
4220
4222
  children: /*#__PURE__*/jsx(Button, {
4221
- "data-cy": "continue-button",
4223
+ "data-testid": "continue-button",
4222
4224
  onClick: handleContinue,
4223
4225
  children: t("neetoRules.buttons.continue")
4224
4226
  })
@@ -4284,7 +4286,7 @@ var ValueField = function ValueField(_ref) {
4284
4286
  if (fieldType === CONDITION_VALUE_TYPES.select || fieldType === CONDITION_VALUE_TYPES.dropdown) {
4285
4287
  return isTarget ? /*#__PURE__*/jsx(SelectField$1.Target, {
4286
4288
  onClick: onClick,
4287
- dataCy: "select-value-dropdown-button",
4289
+ dataTestid: "select-value-dropdown-button",
4288
4290
  dropdownOptions: options,
4289
4291
  name: "".concat(name, ".value")
4290
4292
  }) : /*#__PURE__*/jsx(SelectField$1, {
@@ -4437,12 +4439,12 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4437
4439
  }));
4438
4440
  }
4439
4441
  }), /*#__PURE__*/jsxs(Typography, {
4440
- "data-cy": "condition-verb-and-value-title",
4442
+ "data-testid": "condition-verb-and-value-title",
4441
4443
  style: "h3",
4442
4444
  children: [index ? logicalOperatorLabel : conditionLabel, " ", fieldLabel, "..."]
4443
4445
  })]
4444
4446
  }), /*#__PURE__*/jsx(Typography, {
4445
- "data-cy": "condition-verb-and-value-description",
4447
+ "data-testid": "condition-verb-and-value-description",
4446
4448
  style: "body2",
4447
4449
  children: t("neetoRules.form.addConditionVerbAndValueDescription")
4448
4450
  })]
@@ -4467,7 +4469,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4467
4469
  })
4468
4470
  }), /*#__PURE__*/jsx(Panel.Footer, {
4469
4471
  children: /*#__PURE__*/jsx(Button, {
4470
- "data-cy": "continue-button",
4472
+ "data-testid": "continue-button",
4471
4473
  onClick: handleContinue,
4472
4474
  children: t("neetoRules.buttons.continue")
4473
4475
  })
@@ -4565,6 +4567,7 @@ var DelayPanel = function DelayPanel() {
4565
4567
  })
4566
4568
  }), /*#__PURE__*/jsx(Panel.Footer, {
4567
4569
  children: /*#__PURE__*/jsx(Button, {
4570
+ "data-testid": "continue-button",
4568
4571
  onClick: handleContinue,
4569
4572
  children: t("neetoRules.buttons.continue")
4570
4573
  })
@@ -4772,11 +4775,11 @@ var EventsPanel = function EventsPanel() {
4772
4775
  children: /*#__PURE__*/jsxs("div", {
4773
4776
  className: "flex flex-col space-y-2",
4774
4777
  children: [/*#__PURE__*/jsxs(Typography, {
4775
- "data-cy": "event-title",
4778
+ "data-testid": "event-title",
4776
4779
  style: "h3",
4777
4780
  children: [t("neetoRules.common.when"), "..."]
4778
4781
  }), /*#__PURE__*/jsx(Typography, {
4779
- "data-cy": "event-description",
4782
+ "data-testid": "event-description",
4780
4783
  style: "body2",
4781
4784
  children: t("neetoRules.form.addEventDescription")
4782
4785
  })]
@@ -4787,7 +4790,7 @@ var EventsPanel = function EventsPanel() {
4787
4790
  }),
4788
4791
  children: [isSearchable && /*#__PURE__*/jsx(StickySidebarHeader, {
4789
4792
  children: /*#__PURE__*/jsx(Input$1, {
4790
- "data-cy": "search-text-field",
4793
+ "data-testid": "search-text-field",
4791
4794
  placeholder: t("neetoRules.common.search"),
4792
4795
  prefix: /*#__PURE__*/jsx(Search, {}),
4793
4796
  value: searchTerm,
@@ -4809,7 +4812,7 @@ var EventsPanel = function EventsPanel() {
4809
4812
  ref: ref,
4810
4813
  onFocus: setFieldActive
4811
4814
  } : {}), {}, {
4812
- "data-cy": "".concat(joinHyphenCase(option.label), "-radio"),
4815
+ "data-testid": "".concat(joinHyphenCase(option.label), "-radio"),
4813
4816
  key: option.value,
4814
4817
  label: option.label,
4815
4818
  value: option.value
@@ -4820,7 +4823,7 @@ var EventsPanel = function EventsPanel() {
4820
4823
  ref: ref
4821
4824
  } : {}), {}, {
4822
4825
  checked: eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(option.value),
4823
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
4826
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
4824
4827
  id: option.value,
4825
4828
  key: option.value,
4826
4829
  label: option.label,
@@ -4831,17 +4834,17 @@ var EventsPanel = function EventsPanel() {
4831
4834
  }));
4832
4835
  }) : /*#__PURE__*/jsx("div", {
4833
4836
  className: "py-1 text-sm",
4834
- "data-cy": "no-options-menu-item",
4837
+ "data-testid": "no-options-menu-item",
4835
4838
  children: t("neetoRules.common.noOptions")
4836
4839
  }), error && touched && /*#__PURE__*/jsx("div", {
4837
4840
  className: "neeto-ui-input__error",
4838
- "data-cy": "event-field-input-error",
4841
+ "data-testid": "event-field-input-error",
4839
4842
  children: error
4840
4843
  })]
4841
4844
  })]
4842
4845
  }), /*#__PURE__*/jsx(Panel.Footer, {
4843
4846
  children: /*#__PURE__*/jsx(Button, {
4844
- "data-cy": "continue-button",
4847
+ "data-testid": "continue-button",
4845
4848
  onClick: handleContinue,
4846
4849
  children: t("neetoRules.buttons.continue")
4847
4850
  })
@@ -4914,7 +4917,7 @@ var PerformerPanel = function PerformerPanel() {
4914
4917
  className: "flex items-center space-x-2",
4915
4918
  children: [/*#__PURE__*/jsx(Button, {
4916
4919
  className: "shrink-0 rtl:rotate-180",
4917
- "data-cy": "back-button",
4920
+ "data-testid": "back-button",
4918
4921
  icon: Left,
4919
4922
  size: "medium",
4920
4923
  style: "text",
@@ -4931,12 +4934,12 @@ var PerformerPanel = function PerformerPanel() {
4931
4934
  }));
4932
4935
  }
4933
4936
  }), /*#__PURE__*/jsxs(Typography, {
4934
- "data-cy": "performer-title",
4937
+ "data-testid": "performer-title",
4935
4938
  style: "h3",
4936
4939
  children: [t("neetoRules.form.actionTriggeredBy"), "..."]
4937
4940
  })]
4938
4941
  }), /*#__PURE__*/jsx(Typography, {
4939
- "data-cy": "performer-description",
4942
+ "data-testid": "performer-description",
4940
4943
  style: "body2",
4941
4944
  children: t("neetoRules.form.addPerformerDescription")
4942
4945
  })]
@@ -4963,7 +4966,7 @@ var PerformerPanel = function PerformerPanel() {
4963
4966
  })
4964
4967
  }), /*#__PURE__*/jsx(Panel.Footer, {
4965
4968
  children: /*#__PURE__*/jsx(Button, {
4966
- "data-cy": "continue-button",
4969
+ "data-testid": "continue-button",
4967
4970
  onClick: handleContinue,
4968
4971
  children: t("neetoRules.buttons.continue")
4969
4972
  })
@@ -5499,7 +5502,7 @@ var ActionItem = function ActionItem(_ref) {
5499
5502
  weight: "normal",
5500
5503
  children: label
5501
5504
  }), /*#__PURE__*/jsx(Button, {
5502
- "data-cy": "action-dropdown-button",
5505
+ "data-testid": "action-dropdown-button",
5503
5506
  label: selectedLabel.toLowerCase(),
5504
5507
  style: "link",
5505
5508
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -5535,7 +5538,7 @@ var Card = function Card(_ref) {
5535
5538
  return /*#__PURE__*/jsxs("div", {
5536
5539
  children: [/*#__PURE__*/jsx(Typography, {
5537
5540
  className: "neeto-ui-text-gray-600",
5538
- "data-cy": "".concat(joinHyphenCase(title), "-card-title"),
5541
+ "data-testid": "".concat(joinHyphenCase(title), "-card-title"),
5539
5542
  style: "h4",
5540
5543
  children: title
5541
5544
  }), /*#__PURE__*/jsx("div", {
@@ -5622,7 +5625,7 @@ var Actions = function Actions(_ref) {
5622
5625
  }), /*#__PURE__*/jsxs("div", {
5623
5626
  className: "flex flex-wrap shrink-0 self-center",
5624
5627
  children: [showButton && index === actions.length - 1 && /*#__PURE__*/jsx(Button, {
5625
- "data-cy": "add-action-button",
5628
+ "data-testid": "add-action-button",
5626
5629
  icon: Plus,
5627
5630
  size: "medium",
5628
5631
  style: "text",
@@ -5635,7 +5638,7 @@ var Actions = function Actions(_ref) {
5635
5638
  setShouldOpenPanel(true);
5636
5639
  }
5637
5640
  }), actions.length > 1 && /*#__PURE__*/jsx(Button, {
5638
- "data-cy": "delete-action-button-".concat(index),
5641
+ "data-testid": "delete-action-button-".concat(index),
5639
5642
  icon: Delete,
5640
5643
  size: "medium",
5641
5644
  style: "text",
@@ -5678,7 +5681,7 @@ var LogicalOperator = function LogicalOperator(_ref) {
5678
5681
  options: logicalOperatorOptions,
5679
5682
  value: name,
5680
5683
  customTarget: /*#__PURE__*/jsx(Button, {
5681
- "data-cy": "logic-operator-button",
5684
+ "data-testid": "logic-operator-button",
5682
5685
  icon: Down,
5683
5686
  iconSize: 16,
5684
5687
  label: logicOperationLabel,
@@ -5940,7 +5943,7 @@ var Conditions = function Conditions(_ref) {
5940
5943
  }), /*#__PURE__*/jsxs("div", {
5941
5944
  className: "flex",
5942
5945
  children: [index === conditions.length - 1 && /*#__PURE__*/jsx(Button, {
5943
- "data-cy": "add-condition-button",
5946
+ "data-testid": "add-condition-button",
5944
5947
  icon: Plus,
5945
5948
  size: "medium",
5946
5949
  style: "text",
@@ -5952,7 +5955,7 @@ var Conditions = function Conditions(_ref) {
5952
5955
  return handleAddCondition(arrayHelpers, condition.joinType);
5953
5956
  }
5954
5957
  }), (allowEmpty || index !== 0) && /*#__PURE__*/jsx(Button, {
5955
- "data-cy": "delete-condition-button-".concat(index),
5958
+ "data-testid": "delete-condition-button-".concat(index),
5956
5959
  icon: Delete,
5957
5960
  size: "medium",
5958
5961
  style: "text",
@@ -5968,7 +5971,7 @@ var Conditions = function Conditions(_ref) {
5968
5971
  }, index);
5969
5972
  }), isEmpty(conditions) && /*#__PURE__*/jsx(Button, {
5970
5973
  className: "neeto-ui-text-gray-600 me-auto",
5971
- "data-cy": "add-condition-button",
5974
+ "data-testid": "add-condition-button",
5972
5975
  label: t("neetoRules.form.addCondition"),
5973
5976
  style: "text",
5974
5977
  onClick: function onClick() {
@@ -5977,7 +5980,7 @@ var Conditions = function Conditions(_ref) {
5977
5980
  }), isCallback && isNotEmpty(conditions) && /*#__PURE__*/jsx("div", {
5978
5981
  children: /*#__PURE__*/jsx(Button, {
5979
5982
  className: "mt-2",
5980
- "data-cy": "preview-callback-button",
5983
+ "data-testid": "preview-callback-button",
5981
5984
  icon: Eye,
5982
5985
  label: t("neetoRules.common.preview"),
5983
5986
  style: "secondary",
@@ -6080,7 +6083,7 @@ var AddDelay = function AddDelay(_ref) {
6080
6083
  })]
6081
6084
  }), /*#__PURE__*/jsx(Button, {
6082
6085
  className: "shrink-0",
6083
- "data-cy": "delete-delay-button",
6086
+ "data-testid": "delete-delay-button",
6084
6087
  icon: Delete,
6085
6088
  size: "medium",
6086
6089
  style: "text",
@@ -6154,7 +6157,7 @@ var Performer = function Performer(_ref) {
6154
6157
  weight: "normal",
6155
6158
  children: t("neetoRules.common.by")
6156
6159
  }), /*#__PURE__*/jsx(Button, {
6157
- "data-cy": "event-performer-dropdown",
6160
+ "data-testid": "event-performer-dropdown",
6158
6161
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
6159
6162
  style: "link",
6160
6163
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6240,7 +6243,7 @@ var Events = function Events(_ref) {
6240
6243
  weight: "normal",
6241
6244
  children: t("neetoRules.common.or")
6242
6245
  }), /*#__PURE__*/jsx(Button, {
6243
- "data-cy": "condition-value-multi-select-field",
6246
+ "data-testid": "condition-value-multi-select-field",
6244
6247
  label: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
6245
6248
  style: "link",
6246
6249
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6252,7 +6255,7 @@ var Events = function Events(_ref) {
6252
6255
  }, idx);
6253
6256
  })
6254
6257
  }) : /*#__PURE__*/jsx(Button, {
6255
- "data-cy": "condition-value-multi-select-field",
6258
+ "data-testid": "condition-value-multi-select-field",
6256
6259
  label: defaultLabel,
6257
6260
  style: "link",
6258
6261
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6338,8 +6341,7 @@ var EventConditions = function EventConditions(_ref) {
6338
6341
  }), showAddButton && /*#__PURE__*/jsx(Tooltip, _objectSpread$8(_objectSpread$8({}, tooltipProps), {}, {
6339
6342
  children: /*#__PURE__*/jsx("div", {
6340
6343
  children: /*#__PURE__*/jsx(Button, {
6341
- "data-cy": "add-condition-button",
6342
- "data-test-id": "automation-rules-add-events-button",
6344
+ "data-testid": "add-condition-button",
6343
6345
  disabled: isConditionsEmpty,
6344
6346
  icon: Plus,
6345
6347
  size: "medium",
@@ -6447,7 +6449,7 @@ var RadioField = function RadioField(_ref) {
6447
6449
  className: "my-6",
6448
6450
  children: [/*#__PURE__*/jsx(Label, {
6449
6451
  className: "mb-4",
6450
- "data-cy": "radio-field-label",
6452
+ "data-testid": "radio-field-label",
6451
6453
  children: label || (elementProps === null || elementProps === void 0 ? void 0 : elementProps.label)
6452
6454
  }), /*#__PURE__*/jsx(Radio, _objectSpread$5(_objectSpread$5({
6453
6455
  name: "".concat(name, ".value")
@@ -6893,7 +6895,7 @@ var Form = function Form(_ref) {
6893
6895
  onClick: handleCancel
6894
6896
  },
6895
6897
  submitButtonProps: {
6896
- "data-cy": "form-submit-button"
6898
+ "data-testid": "form-submit-button"
6897
6899
  }
6898
6900
  })
6899
6901
  })]