@bigbinary/neeto-rules-frontend 2.5.44 → 2.5.46

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,6 +1183,7 @@ var Target$i = function Target(_ref) {
1183
1183
  weight: "normal",
1184
1184
  children: separator
1185
1185
  }), /*#__PURE__*/jsx(Button, {
1186
+ "data-testid": "custom-action-button-".concat(hyphenate(defaultLabel)),
1186
1187
  label: defaultLabel.toLowerCase(),
1187
1188
  style: "link",
1188
1189
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1239,7 +1240,7 @@ var Target$h = function Target(_ref) {
1239
1240
  return /*#__PURE__*/jsxs(Fragment, {
1240
1241
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1241
1242
  className: "neeto-ui-text-gray-700",
1242
- "data-cy": "action-dropdown-seperator-text",
1243
+ "data-testid": "action-dropdown-seperator-text",
1243
1244
  style: "h5",
1244
1245
  weight: "normal",
1245
1246
  children: separator
@@ -1360,7 +1361,7 @@ var EditorAction = function EditorAction(_ref) {
1360
1361
  variables: variables,
1361
1362
  hideSlashCommands: true,
1362
1363
  className: "w-full",
1363
- "data-cy": "neeto-editor",
1364
+ "data-testid": "neeto-editor",
1364
1365
  key: name,
1365
1366
  ref: editorRef,
1366
1367
  onChange: setEditorData
@@ -1406,12 +1407,12 @@ var Target$g = function Target(_ref) {
1406
1407
  return /*#__PURE__*/jsxs(Fragment, {
1407
1408
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1408
1409
  className: "neeto-ui-text-gray-700",
1409
- "data-cy": "action-dropdown-seperator-text",
1410
+ "data-testid": "action-dropdown-seperator-text",
1410
1411
  style: "h5",
1411
1412
  weight: "normal",
1412
1413
  children: separator
1413
1414
  }), /*#__PURE__*/jsx(Button, {
1414
- "data-cy": "action-dropdown-button",
1415
+ "data-testid": "action-dropdown-button",
1415
1416
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
1416
1417
  style: "link",
1417
1418
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1479,7 +1480,7 @@ var SelectField$2 = function SelectField(_ref2) {
1479
1480
  onFocus: setFieldActive
1480
1481
  })), handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsx(Button, {
1481
1482
  className: "mt-[22px]",
1482
- "data-cy": "refresh-slack-button",
1483
+ "data-testid": "refresh-slack-button",
1483
1484
  icon: Refresh,
1484
1485
  size: "medium",
1485
1486
  style: "secondary",
@@ -1525,12 +1526,12 @@ var Target$f = function Target(_ref) {
1525
1526
  return /*#__PURE__*/jsxs(Fragment, {
1526
1527
  children: [/*#__PURE__*/jsx(Typography, {
1527
1528
  className: "neeto-ui-text-gray-700",
1528
- "data-cy": "action-email-seperator-text",
1529
+ "data-testid": "action-email-seperator-text",
1529
1530
  style: "h5",
1530
1531
  weight: "normal",
1531
1532
  children: separator
1532
1533
  }), /*#__PURE__*/jsx(Button, {
1533
- "data-cy": "email-action-button",
1534
+ "data-testid": "email-action-button",
1534
1535
  label: defaultLabel.toLowerCase(),
1535
1536
  style: "link",
1536
1537
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1629,7 +1630,7 @@ var EmailFields = function EmailFields(_ref2) {
1629
1630
  }), !selectedField.hideSubject && /*#__PURE__*/jsx(Input$2, {
1630
1631
  required: true,
1631
1632
  className: "mb-4",
1632
- "data-cy": "email-action-subject-text-field",
1633
+ "data-testid": "email-action-subject-text-field",
1633
1634
  label: t("neetoRules.labels.subject"),
1634
1635
  name: "".concat(name, ".subject"),
1635
1636
  ref: isFirstFieldInForm("subject") ? initialFocusRef : null,
@@ -1677,13 +1678,13 @@ var Target$e = function Target(_ref) {
1677
1678
  return /*#__PURE__*/jsxs(Fragment, {
1678
1679
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1679
1680
  className: "neeto-ui-text-gray-700 mt-1",
1680
- "data-cy": "action-dropdown-seperator-text",
1681
+ "data-testid": "action-dropdown-seperator-text",
1681
1682
  style: "h5",
1682
1683
  weight: "normal",
1683
1684
  children: separator
1684
1685
  }), /*#__PURE__*/jsx(Button, {
1685
1686
  label: label,
1686
- "data-cy": "action-value-input-button",
1687
+ "data-testid": "action-value-input-button",
1687
1688
  style: "link",
1688
1689
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
1689
1690
  "neeto-ui-text-accent-800": isFieldActive,
@@ -1792,7 +1793,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1792
1793
  autoFocus: true,
1793
1794
  required: true,
1794
1795
  className: "neeto-planner-inline-input",
1795
- "data-cy": "inline-input-field",
1796
+ "data-testid": "inline-input-field",
1796
1797
  value: inputValue,
1797
1798
  ref: function ref(node) {
1798
1799
  inputFieldEscapeHotkeyRef.current = node;
@@ -1804,7 +1805,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1804
1805
  }, otherProps), {}, {
1805
1806
  suffix: /*#__PURE__*/jsxs(Fragment, {
1806
1807
  children: [/*#__PURE__*/jsx(Button, {
1807
- "data-cy": "inline-input-submit-button",
1808
+ "data-testid": "inline-input-submit-button",
1808
1809
  disabled: !isValidValue,
1809
1810
  icon: Check,
1810
1811
  style: "text",
@@ -1812,7 +1813,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1812
1813
  onClick: onSubmit
1813
1814
  }), /*#__PURE__*/jsx(Button, {
1814
1815
  ref: ref,
1815
- "data-cy": "inline-input-cancel-button",
1816
+ "data-testid": "inline-input-cancel-button",
1816
1817
  icon: Close,
1817
1818
  style: "text",
1818
1819
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
@@ -1848,12 +1849,12 @@ var Target$d = function Target(_ref) {
1848
1849
  return /*#__PURE__*/jsxs(Fragment, {
1849
1850
  children: [/*#__PURE__*/jsx(Typography, {
1850
1851
  className: "neeto-ui-text-gray-700",
1851
- "data-cy": "list-action-separator-text",
1852
+ "data-testid": "list-action-separator-text",
1852
1853
  style: "h5",
1853
1854
  weight: "normal",
1854
1855
  children: separator
1855
1856
  }), /*#__PURE__*/jsx(Button, {
1856
- "data-cy": "list-action-button",
1857
+ "data-testid": "list-action-button",
1857
1858
  label: t("neetoRules.form.list"),
1858
1859
  style: "link",
1859
1860
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1894,12 +1895,12 @@ var ListField = function ListField(_ref2) {
1894
1895
  className: "neeto-ui-bg-white flex flex-wrap justify-between border border-dashed px-2 py-1",
1895
1896
  children: [/*#__PURE__*/jsx(Typography, {
1896
1897
  className: "w-4/5 overflow-x-auto",
1897
- "data-cy": "list-action-item-label",
1898
+ "data-testid": "list-action-item-label",
1898
1899
  style: "body2",
1899
1900
  children: item
1900
1901
  }), /*#__PURE__*/jsx(Button, {
1901
1902
  className: "shrink-0",
1902
- "data-cy": "list-action-delete-item-button",
1903
+ "data-testid": "list-action-delete-item-button",
1903
1904
  icon: Delete,
1904
1905
  size: "medium",
1905
1906
  style: "text",
@@ -1914,7 +1915,7 @@ var ListField = function ListField(_ref2) {
1914
1915
  children: function children(message) {
1915
1916
  return /*#__PURE__*/jsx(Typography, {
1916
1917
  className: "neeto-ui-text-error-500 neeto-ui-text-gray-700",
1917
- "data-cy": "list-action-error-message",
1918
+ "data-testid": "list-action-error-message",
1918
1919
  style: "h5",
1919
1920
  children: message
1920
1921
  });
@@ -1928,7 +1929,7 @@ var ListField = function ListField(_ref2) {
1928
1929
  }
1929
1930
  }) : /*#__PURE__*/jsx(Button, {
1930
1931
  ref: ref,
1931
- "data-cy": "list-action-add-item-button",
1932
+ "data-testid": "list-action-add-item-button",
1932
1933
  icon: Plus,
1933
1934
  label: t("neetoRules.common.addItem"),
1934
1935
  size: "medium",
@@ -1975,7 +1976,7 @@ var Target$c = function Target(_ref) {
1975
1976
  return /*#__PURE__*/jsxs(Fragment, {
1976
1977
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
1977
1978
  className: "neeto-ui-text-gray-700",
1978
- "data-cy": "multi-select-action-separator-text",
1979
+ "data-testid": "multi-select-action-separator-text",
1979
1980
  style: "h5",
1980
1981
  weight: "normal",
1981
1982
  children: separator
@@ -1995,7 +1996,7 @@ var Target$c = function Target(_ref) {
1995
1996
  what: ""
1996
1997
  })
1997
1998
  }), /*#__PURE__*/jsx(Button, {
1998
- "data-cy": "multi-select-action-button",
1999
+ "data-testid": "multi-select-action-button",
1999
2000
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2000
2001
  style: "link",
2001
2002
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2104,7 +2105,7 @@ var Target$b = function Target(_ref) {
2104
2105
  return /*#__PURE__*/jsxs(Fragment, {
2105
2106
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
2106
2107
  className: "neeto-ui-text-gray-700",
2107
- "data-cy": "multi-select-action-separator-text",
2108
+ "data-testid": "multi-select-action-separator-text",
2108
2109
  style: "h5",
2109
2110
  weight: "normal",
2110
2111
  children: separator
@@ -2124,7 +2125,7 @@ var Target$b = function Target(_ref) {
2124
2125
  what: ""
2125
2126
  })
2126
2127
  }), /*#__PURE__*/jsx(Button, {
2127
- "data-cy": "multi-select-action-button",
2128
+ "data-testid": "multi-select-action-button",
2128
2129
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2129
2130
  style: "link",
2130
2131
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2190,7 +2191,7 @@ var MultiSelectCheckbox$1 = function MultiSelectCheckbox(_ref2) {
2190
2191
  return /*#__PURE__*/createElement(Checkbox, {
2191
2192
  ref: ref,
2192
2193
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
2193
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
2194
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
2194
2195
  id: option.value,
2195
2196
  key: option.value,
2196
2197
  label: option.label,
@@ -2234,12 +2235,12 @@ var Target$a = function Target(_ref) {
2234
2235
  return /*#__PURE__*/jsxs(Fragment, {
2235
2236
  children: [/*#__PURE__*/jsx(Typography, {
2236
2237
  className: "neeto-ui-text-gray-700",
2237
- "data-cy": "note-action-separator-text",
2238
+ "data-testid": "note-action-separator-text",
2238
2239
  style: "h5",
2239
2240
  weight: "normal",
2240
2241
  children: separator
2241
2242
  }), /*#__PURE__*/jsx(Button, {
2242
- "data-cy": "note-action-button",
2243
+ "data-testid": "note-action-button",
2243
2244
  label: defaultLabel.toLowerCase(),
2244
2245
  style: "link",
2245
2246
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2314,12 +2315,12 @@ var Target$9 = function Target(_ref) {
2314
2315
  return /*#__PURE__*/jsxs(Fragment, {
2315
2316
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
2316
2317
  className: "neeto-ui-text-gray-700",
2317
- "data-cy": "action-radio-seperator-text",
2318
+ "data-testid": "action-radio-seperator-text",
2318
2319
  style: "h5",
2319
2320
  weight: "normal",
2320
2321
  children: separator
2321
2322
  }), /*#__PURE__*/jsx(Button, {
2322
- "data-cy": "action-radio-button",
2323
+ "data-testid": "action-radio-button",
2323
2324
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2324
2325
  style: "link",
2325
2326
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2447,7 +2448,7 @@ var STYLES = {
2447
2448
  };
2448
2449
  var MultiValueRemove = function MultiValueRemove(props) {
2449
2450
  return /*#__PURE__*/jsx(components.MultiValueRemove, _objectSpread$m(_objectSpread$m({}, props), {}, {
2450
- 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"))),
2451
2452
  children: /*#__PURE__*/jsx(Close, {
2452
2453
  size: 16
2453
2454
  })
@@ -2468,7 +2469,7 @@ var ValueContainer = function ValueContainer(_ref) {
2468
2469
  rest = _children.slice(1);
2469
2470
  var shouldCollapse = !isFocused && value.length > visiblePhoneNumbersCount;
2470
2471
  return /*#__PURE__*/jsxs(components.ValueContainer, _objectSpread$m(_objectSpread$m({}, props), {}, {
2471
- 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")),
2472
2473
  children: [shouldCollapse ? firstChild.slice(0, visiblePhoneNumbersCount) : firstChild, shouldCollapse && /*#__PURE__*/jsx(Tag, {
2473
2474
  style: "secondary",
2474
2475
  label: t("neetoRules.labels.remainingItemsCount", {
@@ -2479,7 +2480,7 @@ var ValueContainer = function ValueContainer(_ref) {
2479
2480
  };
2480
2481
  var ClearIndicator = function ClearIndicator(props) {
2481
2482
  return /*#__PURE__*/jsx(components.ClearIndicator, _objectSpread$m(_objectSpread$m({}, props), {}, {
2482
- 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")),
2483
2484
  children: /*#__PURE__*/jsx(Close, {
2484
2485
  className: "cursor-pointer",
2485
2486
  size: 16
@@ -2570,7 +2571,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2570
2571
  children: /*#__PURE__*/jsx(Label, {
2571
2572
  required: true,
2572
2573
  className: "neeto-ui-email-input__label",
2573
- "data-cy": "".concat(dasherize(label), "-input-label"),
2574
+ "data-testid": "".concat(dasherize(label), "-input-label"),
2574
2575
  children: label
2575
2576
  })
2576
2577
  }), /*#__PURE__*/jsx(CreatableSelect, _objectSpread$l({
@@ -2606,7 +2607,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2606
2607
  value: value
2607
2608
  }, otherProps))), !!error && /*#__PURE__*/jsxs("p", {
2608
2609
  className: "neeto-ui-input__error",
2609
- "data-cy": "".concat(dasherize(label), "-input-error"),
2610
+ "data-testid": "".concat(dasherize(label), "-input-error"),
2610
2611
  children: [formatErrorMessage(error), isFilterPhoneNumbersLinkVisible && /*#__PURE__*/jsxs("span", {
2611
2612
  className: "neeto-ui-font-semibold cursor-pointer",
2612
2613
  onClick: handleFilterPhoneNumbers,
@@ -2614,7 +2615,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2614
2615
  })]
2615
2616
  }), /*#__PURE__*/jsx("p", {
2616
2617
  className: "neeto-ui-input__help-text",
2617
- "data-cy": "".concat(dasherize(label), "-input-help"),
2618
+ "data-testid": "".concat(dasherize(label), "-input-help"),
2618
2619
  children: t("neetoRules.helpTexts.phoneNumber")
2619
2620
  })]
2620
2621
  });
@@ -2689,12 +2690,12 @@ var Target$8 = function Target(_ref) {
2689
2690
  return /*#__PURE__*/jsxs(Fragment, {
2690
2691
  children: [/*#__PURE__*/jsx(Typography, {
2691
2692
  className: "neeto-ui-text-gray-700",
2692
- "data-cy": "sms-action-separator-text",
2693
+ "data-testid": "sms-action-separator-text",
2693
2694
  style: "h5",
2694
2695
  weight: "normal",
2695
2696
  children: separator
2696
2697
  }), /*#__PURE__*/jsx(Button, {
2697
- "data-cy": "sms-action-button",
2698
+ "data-testid": "sms-action-button",
2698
2699
  label: defaultLabel.toLowerCase(),
2699
2700
  style: "link",
2700
2701
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3228,7 +3229,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3228
3229
  className: "flex items-center space-x-2",
3229
3230
  children: [/*#__PURE__*/jsx(Button, {
3230
3231
  className: "shrink-0 rtl:rotate-180",
3231
- "data-cy": "back-button",
3232
+ "data-testid": "back-button",
3232
3233
  icon: Left,
3233
3234
  size: "medium",
3234
3235
  style: "text",
@@ -3246,12 +3247,12 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3246
3247
  }));
3247
3248
  }
3248
3249
  }), /*#__PURE__*/jsx(Typography, {
3249
- "data-cy": "action-sub-item-title",
3250
+ "data-testid": "action-sub-item-title",
3250
3251
  style: "h3",
3251
3252
  children: header
3252
3253
  })]
3253
3254
  }), /*#__PURE__*/jsx(Typography, {
3254
- "data-cy": "action-sub-item-description",
3255
+ "data-testid": "action-sub-item-description",
3255
3256
  style: "body2",
3256
3257
  children: t("neetoRules.form.addActionSubItemDescription")
3257
3258
  })]
@@ -3280,7 +3281,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3280
3281
  })]
3281
3282
  }), /*#__PURE__*/jsx(Panel.Footer, {
3282
3283
  children: /*#__PURE__*/jsx(Button, {
3283
- "data-cy": "continue-button",
3284
+ "data-testid": "continue-button",
3284
3285
  onClick: handleContinue,
3285
3286
  children: t("neetoRules.buttons.continue")
3286
3287
  })
@@ -3316,6 +3317,7 @@ var Target$7 = function Target(_ref) {
3316
3317
  var isFieldInvalid = meta.touched && meta.error;
3317
3318
  return /*#__PURE__*/jsx(Button, {
3318
3319
  label: label,
3320
+ "data-testid": "condition-value-select-date-button",
3319
3321
  style: "link",
3320
3322
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3321
3323
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3411,7 +3413,7 @@ var Target$6 = function Target(_ref) {
3411
3413
  var label = valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
3412
3414
  return /*#__PURE__*/jsx(Button, {
3413
3415
  label: label,
3414
- "data-cy": "condition-value-input-button",
3416
+ "data-testid": "condition-value-input-button",
3415
3417
  style: "link",
3416
3418
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3417
3419
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3489,7 +3491,7 @@ var Target$5 = function Target(_ref) {
3489
3491
  weight: "normal",
3490
3492
  children: t("neetoRules.common.or")
3491
3493
  }), /*#__PURE__*/jsx(Button, {
3492
- "data-cy": "condition-value-multi-select-field",
3494
+ "data-testid": "condition-value-multi-select-field",
3493
3495
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3494
3496
  style: "link",
3495
3497
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3504,7 +3506,7 @@ var Target$5 = function Target(_ref) {
3504
3506
  }, idx);
3505
3507
  })
3506
3508
  }) : /*#__PURE__*/jsx(Button, {
3507
- "data-cy": "condition-value-multi-select-field",
3509
+ "data-testid": "condition-value-multi-select-field",
3508
3510
  label: defaultLabel,
3509
3511
  style: "link",
3510
3512
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3597,7 +3599,7 @@ var Target$4 = function Target(_ref) {
3597
3599
  weight: "normal",
3598
3600
  children: t("neetoRules.common.or")
3599
3601
  }), /*#__PURE__*/jsx(Button, {
3600
- "data-cy": "condition-value-multi-select-field",
3602
+ "data-testid": "condition-value-multi-select-field",
3601
3603
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3602
3604
  style: "link",
3603
3605
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3612,7 +3614,7 @@ var Target$4 = function Target(_ref) {
3612
3614
  }, idx);
3613
3615
  })
3614
3616
  }) : /*#__PURE__*/jsx(Button, {
3615
- "data-cy": "condition-value-multi-select-field",
3617
+ "data-testid": "condition-value-multi-select-field",
3616
3618
  label: defaultLabel,
3617
3619
  style: "link",
3618
3620
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3664,7 +3666,7 @@ var MultiSelectCheckbox = function MultiSelectCheckbox(_ref2) {
3664
3666
  return /*#__PURE__*/createElement(Checkbox, _objectSpread$i({
3665
3667
  ref: ref,
3666
3668
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
3667
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
3669
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
3668
3670
  id: option.value,
3669
3671
  key: option.value,
3670
3672
  label: option.label,
@@ -3752,7 +3754,7 @@ var Target$3 = function Target(_ref) {
3752
3754
  weight: "normal",
3753
3755
  children: t("neetoRules.common.or")
3754
3756
  }), /*#__PURE__*/jsx(Button, {
3755
- "data-cy": "condition-value-multi-select-field",
3757
+ "data-testid": "condition-value-multi-select-field",
3756
3758
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3757
3759
  style: "link",
3758
3760
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3767,7 +3769,7 @@ var Target$3 = function Target(_ref) {
3767
3769
  }, idx);
3768
3770
  })
3769
3771
  }) : /*#__PURE__*/jsx(Button, {
3770
- "data-cy": "condition-value-multi-select-field",
3772
+ "data-testid": "condition-value-multi-select-field",
3771
3773
  label: defaultLabel,
3772
3774
  style: "link",
3773
3775
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3811,7 +3813,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref2) {
3811
3813
  isCreateable: true,
3812
3814
  isMulti: true,
3813
3815
  className: "mt-4 w-full",
3814
- "data-cy": "multi-select-create-container",
3816
+ "data-testid": "multi-select-create-container",
3815
3817
  innerRef: ref,
3816
3818
  label: t("neetoRules.labels.selectValues"),
3817
3819
  placeholder: t("neetoRules.placeholders.multiSelect"),
@@ -3855,7 +3857,7 @@ var Target$2 = function Target(_ref) {
3855
3857
  };
3856
3858
  }, [field.value, options]);
3857
3859
  return /*#__PURE__*/jsx(Button, _objectSpread$h({
3858
- "data-cy": "condition-value-dropdown-button",
3860
+ "data-testid": "condition-value-dropdown-button",
3859
3861
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3860
3862
  style: "link",
3861
3863
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3914,7 +3916,7 @@ var RadioField$1 = function RadioField(_ref2) {
3914
3916
  className: "w-full",
3915
3917
  children: [isSearchable && /*#__PURE__*/jsx(StickySidebarHeader, {
3916
3918
  children: /*#__PURE__*/jsx(Input$1, {
3917
- "data-cy": "search-text-field",
3919
+ "data-testid": "search-text-field",
3918
3920
  placeholder: t("neetoRules.common.search"),
3919
3921
  prefix: /*#__PURE__*/jsx(Search, {}),
3920
3922
  value: searchTerm,
@@ -3945,7 +3947,7 @@ var RadioField$1 = function RadioField(_ref2) {
3945
3947
  })
3946
3948
  })) : /*#__PURE__*/jsx("div", {
3947
3949
  className: "py-1 text-sm",
3948
- "data-cy": "no-options-menu-item",
3950
+ "data-testid": "no-options-menu-item",
3949
3951
  children: t("neetoRules.common.noOptions")
3950
3952
  })]
3951
3953
  });
@@ -3959,8 +3961,8 @@ var Target$1 = function Target(_ref) {
3959
3961
  placeholder = _ref.placeholder,
3960
3962
  _ref$onClick = _ref.onClick,
3961
3963
  _onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
3962
- _ref$dataCy = _ref.dataCy,
3963
- 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;
3964
3966
  var _useTranslation = useTranslation(),
3965
3967
  t = _useTranslation.t;
3966
3968
  var _useField = useField(name),
@@ -3982,7 +3984,7 @@ var Target$1 = function Target(_ref) {
3982
3984
  };
3983
3985
  }, [field.value, dropdownOptions]);
3984
3986
  return /*#__PURE__*/jsx(Button, {
3985
- "data-cy": dataCy,
3987
+ "data-testid": dataTestid,
3986
3988
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3987
3989
  style: "link",
3988
3990
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -4073,6 +4075,7 @@ var Target = function Target(_ref) {
4073
4075
  var isFieldInvalid = meta.touched && meta.error;
4074
4076
  return /*#__PURE__*/jsx(Button, {
4075
4077
  label: label,
4078
+ "data-testid": "condition-value-select-time-button",
4076
4079
  style: "link",
4077
4080
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
4078
4081
  "neeto-ui-text-accent-800": isFieldActive,
@@ -4193,11 +4196,11 @@ var FieldPanel = function FieldPanel() {
4193
4196
  children: /*#__PURE__*/jsxs("div", {
4194
4197
  className: "flex flex-col space-y-2",
4195
4198
  children: [/*#__PURE__*/jsxs(Typography, {
4196
- "data-cy": "condition-title",
4199
+ "data-testid": "condition-title",
4197
4200
  style: "h3",
4198
4201
  children: [index ? logicalOperatorLabel : conditionLabel, "..."]
4199
4202
  }), /*#__PURE__*/jsx(Typography, {
4200
- "data-cy": "condition-description",
4203
+ "data-testid": "condition-description",
4201
4204
  style: "body2",
4202
4205
  children: t("neetoRules.form.addConditionDescription")
4203
4206
  })]
@@ -4217,7 +4220,7 @@ var FieldPanel = function FieldPanel() {
4217
4220
  })
4218
4221
  }), /*#__PURE__*/jsx(Panel.Footer, {
4219
4222
  children: /*#__PURE__*/jsx(Button, {
4220
- "data-cy": "continue-button",
4223
+ "data-testid": "continue-button",
4221
4224
  onClick: handleContinue,
4222
4225
  children: t("neetoRules.buttons.continue")
4223
4226
  })
@@ -4283,7 +4286,7 @@ var ValueField = function ValueField(_ref) {
4283
4286
  if (fieldType === CONDITION_VALUE_TYPES.select || fieldType === CONDITION_VALUE_TYPES.dropdown) {
4284
4287
  return isTarget ? /*#__PURE__*/jsx(SelectField$1.Target, {
4285
4288
  onClick: onClick,
4286
- dataCy: "select-value-dropdown-button",
4289
+ dataTestid: "select-value-dropdown-button",
4287
4290
  dropdownOptions: options,
4288
4291
  name: "".concat(name, ".value")
4289
4292
  }) : /*#__PURE__*/jsx(SelectField$1, {
@@ -4436,12 +4439,12 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4436
4439
  }));
4437
4440
  }
4438
4441
  }), /*#__PURE__*/jsxs(Typography, {
4439
- "data-cy": "condition-verb-and-value-title",
4442
+ "data-testid": "condition-verb-and-value-title",
4440
4443
  style: "h3",
4441
4444
  children: [index ? logicalOperatorLabel : conditionLabel, " ", fieldLabel, "..."]
4442
4445
  })]
4443
4446
  }), /*#__PURE__*/jsx(Typography, {
4444
- "data-cy": "condition-verb-and-value-description",
4447
+ "data-testid": "condition-verb-and-value-description",
4445
4448
  style: "body2",
4446
4449
  children: t("neetoRules.form.addConditionVerbAndValueDescription")
4447
4450
  })]
@@ -4466,7 +4469,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4466
4469
  })
4467
4470
  }), /*#__PURE__*/jsx(Panel.Footer, {
4468
4471
  children: /*#__PURE__*/jsx(Button, {
4469
- "data-cy": "continue-button",
4472
+ "data-testid": "continue-button",
4470
4473
  onClick: handleContinue,
4471
4474
  children: t("neetoRules.buttons.continue")
4472
4475
  })
@@ -4771,11 +4774,11 @@ var EventsPanel = function EventsPanel() {
4771
4774
  children: /*#__PURE__*/jsxs("div", {
4772
4775
  className: "flex flex-col space-y-2",
4773
4776
  children: [/*#__PURE__*/jsxs(Typography, {
4774
- "data-cy": "event-title",
4777
+ "data-testid": "event-title",
4775
4778
  style: "h3",
4776
4779
  children: [t("neetoRules.common.when"), "..."]
4777
4780
  }), /*#__PURE__*/jsx(Typography, {
4778
- "data-cy": "event-description",
4781
+ "data-testid": "event-description",
4779
4782
  style: "body2",
4780
4783
  children: t("neetoRules.form.addEventDescription")
4781
4784
  })]
@@ -4786,7 +4789,7 @@ var EventsPanel = function EventsPanel() {
4786
4789
  }),
4787
4790
  children: [isSearchable && /*#__PURE__*/jsx(StickySidebarHeader, {
4788
4791
  children: /*#__PURE__*/jsx(Input$1, {
4789
- "data-cy": "search-text-field",
4792
+ "data-testid": "search-text-field",
4790
4793
  placeholder: t("neetoRules.common.search"),
4791
4794
  prefix: /*#__PURE__*/jsx(Search, {}),
4792
4795
  value: searchTerm,
@@ -4808,7 +4811,7 @@ var EventsPanel = function EventsPanel() {
4808
4811
  ref: ref,
4809
4812
  onFocus: setFieldActive
4810
4813
  } : {}), {}, {
4811
- "data-cy": "".concat(joinHyphenCase(option.label), "-radio"),
4814
+ "data-testid": "".concat(joinHyphenCase(option.label), "-radio"),
4812
4815
  key: option.value,
4813
4816
  label: option.label,
4814
4817
  value: option.value
@@ -4819,7 +4822,7 @@ var EventsPanel = function EventsPanel() {
4819
4822
  ref: ref
4820
4823
  } : {}), {}, {
4821
4824
  checked: eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(option.value),
4822
- "data-cy": "".concat(joinHyphenCase(option.label), "-checkbox"),
4825
+ "data-testid": "".concat(joinHyphenCase(option.label), "-checkbox"),
4823
4826
  id: option.value,
4824
4827
  key: option.value,
4825
4828
  label: option.label,
@@ -4830,17 +4833,17 @@ var EventsPanel = function EventsPanel() {
4830
4833
  }));
4831
4834
  }) : /*#__PURE__*/jsx("div", {
4832
4835
  className: "py-1 text-sm",
4833
- "data-cy": "no-options-menu-item",
4836
+ "data-testid": "no-options-menu-item",
4834
4837
  children: t("neetoRules.common.noOptions")
4835
4838
  }), error && touched && /*#__PURE__*/jsx("div", {
4836
4839
  className: "neeto-ui-input__error",
4837
- "data-cy": "event-field-input-error",
4840
+ "data-testid": "event-field-input-error",
4838
4841
  children: error
4839
4842
  })]
4840
4843
  })]
4841
4844
  }), /*#__PURE__*/jsx(Panel.Footer, {
4842
4845
  children: /*#__PURE__*/jsx(Button, {
4843
- "data-cy": "continue-button",
4846
+ "data-testid": "continue-button",
4844
4847
  onClick: handleContinue,
4845
4848
  children: t("neetoRules.buttons.continue")
4846
4849
  })
@@ -4913,7 +4916,7 @@ var PerformerPanel = function PerformerPanel() {
4913
4916
  className: "flex items-center space-x-2",
4914
4917
  children: [/*#__PURE__*/jsx(Button, {
4915
4918
  className: "shrink-0 rtl:rotate-180",
4916
- "data-cy": "back-button",
4919
+ "data-testid": "back-button",
4917
4920
  icon: Left,
4918
4921
  size: "medium",
4919
4922
  style: "text",
@@ -4930,12 +4933,12 @@ var PerformerPanel = function PerformerPanel() {
4930
4933
  }));
4931
4934
  }
4932
4935
  }), /*#__PURE__*/jsxs(Typography, {
4933
- "data-cy": "performer-title",
4936
+ "data-testid": "performer-title",
4934
4937
  style: "h3",
4935
4938
  children: [t("neetoRules.form.actionTriggeredBy"), "..."]
4936
4939
  })]
4937
4940
  }), /*#__PURE__*/jsx(Typography, {
4938
- "data-cy": "performer-description",
4941
+ "data-testid": "performer-description",
4939
4942
  style: "body2",
4940
4943
  children: t("neetoRules.form.addPerformerDescription")
4941
4944
  })]
@@ -4962,7 +4965,7 @@ var PerformerPanel = function PerformerPanel() {
4962
4965
  })
4963
4966
  }), /*#__PURE__*/jsx(Panel.Footer, {
4964
4967
  children: /*#__PURE__*/jsx(Button, {
4965
- "data-cy": "continue-button",
4968
+ "data-testid": "continue-button",
4966
4969
  onClick: handleContinue,
4967
4970
  children: t("neetoRules.buttons.continue")
4968
4971
  })
@@ -5498,7 +5501,7 @@ var ActionItem = function ActionItem(_ref) {
5498
5501
  weight: "normal",
5499
5502
  children: label
5500
5503
  }), /*#__PURE__*/jsx(Button, {
5501
- "data-cy": "action-dropdown-button",
5504
+ "data-testid": "action-dropdown-button",
5502
5505
  label: selectedLabel.toLowerCase(),
5503
5506
  style: "link",
5504
5507
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -5534,7 +5537,7 @@ var Card = function Card(_ref) {
5534
5537
  return /*#__PURE__*/jsxs("div", {
5535
5538
  children: [/*#__PURE__*/jsx(Typography, {
5536
5539
  className: "neeto-ui-text-gray-600",
5537
- "data-cy": "".concat(joinHyphenCase(title), "-card-title"),
5540
+ "data-testid": "".concat(joinHyphenCase(title), "-card-title"),
5538
5541
  style: "h4",
5539
5542
  children: title
5540
5543
  }), /*#__PURE__*/jsx("div", {
@@ -5621,7 +5624,7 @@ var Actions = function Actions(_ref) {
5621
5624
  }), /*#__PURE__*/jsxs("div", {
5622
5625
  className: "flex flex-wrap shrink-0 self-center",
5623
5626
  children: [showButton && index === actions.length - 1 && /*#__PURE__*/jsx(Button, {
5624
- "data-cy": "add-action-button",
5627
+ "data-testid": "add-action-button",
5625
5628
  icon: Plus,
5626
5629
  size: "medium",
5627
5630
  style: "text",
@@ -5634,7 +5637,7 @@ var Actions = function Actions(_ref) {
5634
5637
  setShouldOpenPanel(true);
5635
5638
  }
5636
5639
  }), actions.length > 1 && /*#__PURE__*/jsx(Button, {
5637
- "data-cy": "delete-action-button-".concat(index),
5640
+ "data-testid": "delete-action-button-".concat(index),
5638
5641
  icon: Delete,
5639
5642
  size: "medium",
5640
5643
  style: "text",
@@ -5677,7 +5680,7 @@ var LogicalOperator = function LogicalOperator(_ref) {
5677
5680
  options: logicalOperatorOptions,
5678
5681
  value: name,
5679
5682
  customTarget: /*#__PURE__*/jsx(Button, {
5680
- "data-cy": "logic-operator-button",
5683
+ "data-testid": "logic-operator-button",
5681
5684
  icon: Down,
5682
5685
  iconSize: 16,
5683
5686
  label: logicOperationLabel,
@@ -5939,7 +5942,7 @@ var Conditions = function Conditions(_ref) {
5939
5942
  }), /*#__PURE__*/jsxs("div", {
5940
5943
  className: "flex",
5941
5944
  children: [index === conditions.length - 1 && /*#__PURE__*/jsx(Button, {
5942
- "data-cy": "add-condition-button",
5945
+ "data-testid": "add-condition-button",
5943
5946
  icon: Plus,
5944
5947
  size: "medium",
5945
5948
  style: "text",
@@ -5951,7 +5954,7 @@ var Conditions = function Conditions(_ref) {
5951
5954
  return handleAddCondition(arrayHelpers, condition.joinType);
5952
5955
  }
5953
5956
  }), (allowEmpty || index !== 0) && /*#__PURE__*/jsx(Button, {
5954
- "data-cy": "delete-condition-button-".concat(index),
5957
+ "data-testid": "delete-condition-button-".concat(index),
5955
5958
  icon: Delete,
5956
5959
  size: "medium",
5957
5960
  style: "text",
@@ -5967,7 +5970,7 @@ var Conditions = function Conditions(_ref) {
5967
5970
  }, index);
5968
5971
  }), isEmpty(conditions) && /*#__PURE__*/jsx(Button, {
5969
5972
  className: "neeto-ui-text-gray-600 me-auto",
5970
- "data-cy": "add-condition-button",
5973
+ "data-testid": "add-condition-button",
5971
5974
  label: t("neetoRules.form.addCondition"),
5972
5975
  style: "text",
5973
5976
  onClick: function onClick() {
@@ -5976,7 +5979,7 @@ var Conditions = function Conditions(_ref) {
5976
5979
  }), isCallback && isNotEmpty(conditions) && /*#__PURE__*/jsx("div", {
5977
5980
  children: /*#__PURE__*/jsx(Button, {
5978
5981
  className: "mt-2",
5979
- "data-cy": "preview-callback-button",
5982
+ "data-testid": "preview-callback-button",
5980
5983
  icon: Eye,
5981
5984
  label: t("neetoRules.common.preview"),
5982
5985
  style: "secondary",
@@ -6079,7 +6082,7 @@ var AddDelay = function AddDelay(_ref) {
6079
6082
  })]
6080
6083
  }), /*#__PURE__*/jsx(Button, {
6081
6084
  className: "shrink-0",
6082
- "data-cy": "delete-delay-button",
6085
+ "data-testid": "delete-delay-button",
6083
6086
  icon: Delete,
6084
6087
  size: "medium",
6085
6088
  style: "text",
@@ -6153,7 +6156,7 @@ var Performer = function Performer(_ref) {
6153
6156
  weight: "normal",
6154
6157
  children: t("neetoRules.common.by")
6155
6158
  }), /*#__PURE__*/jsx(Button, {
6156
- "data-cy": "event-performer-dropdown",
6159
+ "data-testid": "event-performer-dropdown",
6157
6160
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
6158
6161
  style: "link",
6159
6162
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6239,7 +6242,7 @@ var Events = function Events(_ref) {
6239
6242
  weight: "normal",
6240
6243
  children: t("neetoRules.common.or")
6241
6244
  }), /*#__PURE__*/jsx(Button, {
6242
- "data-cy": "condition-value-multi-select-field",
6245
+ "data-testid": "condition-value-multi-select-field",
6243
6246
  label: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
6244
6247
  style: "link",
6245
6248
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6251,7 +6254,7 @@ var Events = function Events(_ref) {
6251
6254
  }, idx);
6252
6255
  })
6253
6256
  }) : /*#__PURE__*/jsx(Button, {
6254
- "data-cy": "condition-value-multi-select-field",
6257
+ "data-testid": "condition-value-multi-select-field",
6255
6258
  label: defaultLabel,
6256
6259
  style: "link",
6257
6260
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6337,8 +6340,7 @@ var EventConditions = function EventConditions(_ref) {
6337
6340
  }), showAddButton && /*#__PURE__*/jsx(Tooltip, _objectSpread$8(_objectSpread$8({}, tooltipProps), {}, {
6338
6341
  children: /*#__PURE__*/jsx("div", {
6339
6342
  children: /*#__PURE__*/jsx(Button, {
6340
- "data-cy": "add-condition-button",
6341
- "data-test-id": "automation-rules-add-events-button",
6343
+ "data-testid": "add-condition-button",
6342
6344
  disabled: isConditionsEmpty,
6343
6345
  icon: Plus,
6344
6346
  size: "medium",
@@ -6446,7 +6448,7 @@ var RadioField = function RadioField(_ref) {
6446
6448
  className: "my-6",
6447
6449
  children: [/*#__PURE__*/jsx(Label, {
6448
6450
  className: "mb-4",
6449
- "data-cy": "radio-field-label",
6451
+ "data-testid": "radio-field-label",
6450
6452
  children: label || (elementProps === null || elementProps === void 0 ? void 0 : elementProps.label)
6451
6453
  }), /*#__PURE__*/jsx(Radio, _objectSpread$5(_objectSpread$5({
6452
6454
  name: "".concat(name, ".value")
@@ -6892,7 +6894,7 @@ var Form = function Form(_ref) {
6892
6894
  onClick: handleCancel
6893
6895
  },
6894
6896
  submitButtonProps: {
6895
- "data-cy": "form-submit-button"
6897
+ "data-testid": "form-submit-button"
6896
6898
  }
6897
6899
  })
6898
6900
  })]