@bigbinary/neeto-rules-frontend 2.5.45 → 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.
@@ -104,7 +104,7 @@ var Body = function Body(_ref) {
104
104
  var children = _ref.children,
105
105
  className = _ref.className;
106
106
  return /*#__PURE__*/jsxRuntime.jsx("div", {
107
- "data-cy": "pane-body",
107
+ "data-testid": "pane-body",
108
108
  className: classNames("neeto-rules-side-panel__body grow overflow-y-auto p-6", _defineProperty({}, className, className)),
109
109
  children: children
110
110
  });
@@ -114,7 +114,7 @@ var Footer = function Footer(_ref) {
114
114
  var children = _ref.children,
115
115
  className = _ref.className;
116
116
  return /*#__PURE__*/jsxRuntime.jsx("div", {
117
- "data-cy": "pane-footer",
117
+ "data-testid": "pane-footer",
118
118
  className: classNames("neeto-rules-side-panel__footer neeto-ui-border-gray-200 flex items-center justify-between border-t p-6", className),
119
119
  children: children
120
120
  });
@@ -132,14 +132,14 @@ var Header = function Header(_ref) {
132
132
  var _useTranslation = reactI18next.useTranslation(),
133
133
  t = _useTranslation.t;
134
134
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
135
- "data-cy": "pane-header",
135
+ "data-testid": "pane-header",
136
136
  className: classNames("neeto-rules-side-panel__header neeto-ui-border-gray-200 flex items-start justify-between border-b p-6", _defineProperty({}, className, className)),
137
137
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
138
138
  className: "flex min-w-0 grow",
139
139
  children: children
140
140
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
141
141
  className: "shrink-0 scale-x-[-1] rtl:rotate-180",
142
- "data-cy": "collapse-sidebar-button",
142
+ "data-testid": "collapse-sidebar-button",
143
143
  icon: Collapse,
144
144
  size: "medium",
145
145
  style: "text",
@@ -425,11 +425,11 @@ var ActionPanel = function ActionPanel() {
425
425
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
426
426
  className: "flex flex-col space-y-2",
427
427
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
428
- "data-cy": "action-title",
428
+ "data-testid": "action-title",
429
429
  style: "h3",
430
430
  children: [label, "..."]
431
431
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
432
- "data-cy": "action-description",
432
+ "data-testid": "action-description",
433
433
  style: "body2",
434
434
  children: t("neetoRules.form.addActionDescription")
435
435
  })]
@@ -440,7 +440,7 @@ var ActionPanel = function ActionPanel() {
440
440
  }),
441
441
  children: [(isSearchable || errorMessage) && /*#__PURE__*/jsxRuntime.jsxs(StickySidebarHeader, {
442
442
  children: [isSearchable && /*#__PURE__*/jsxRuntime.jsx(Input$1, {
443
- "data-cy": "search-text-field",
443
+ "data-testid": "search-text-field",
444
444
  placeholder: t("neetoRules.common.search"),
445
445
  prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
446
446
  value: searchTerm,
@@ -472,12 +472,12 @@ var ActionPanel = function ActionPanel() {
472
472
  })
473
473
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
474
474
  className: "py-1 text-sm",
475
- "data-cy": "no-options-menu-item",
475
+ "data-testid": "no-options-menu-item",
476
476
  children: t("neetoRules.common.noOptions")
477
477
  })]
478
478
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
479
479
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
480
- "data-cy": "continue-button",
480
+ "data-testid": "continue-button",
481
481
  onClick: handleContinue,
482
482
  children: t("neetoRules.buttons.continue")
483
483
  })
@@ -558,12 +558,12 @@ var Target$k = function Target(_ref) {
558
558
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
559
559
  children: [separator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
560
560
  className: "neeto-ui-text-gray-700",
561
- "data-cy": "long-text-action-separator-text",
561
+ "data-testid": "long-text-action-separator-text",
562
562
  style: "h5",
563
563
  weight: "normal",
564
564
  children: separator
565
565
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
566
- "data-cy": "long-text-action-button",
566
+ "data-testid": "long-text-action-button",
567
567
  label: label.toLowerCase(),
568
568
  style: "link",
569
569
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -798,7 +798,7 @@ var CustomHeaders = function CustomHeaders(_ref) {
798
798
  children: [/*#__PURE__*/jsxRuntime.jsx(Switch, _objectSpread$t({
799
799
  label: label,
800
800
  onFocus: onFocus,
801
- "data-cy": "neeto-rules-api-fields-".concat(neetoCist.hyphenate(label), "-switch"),
801
+ "data-testid": "neeto-rules-api-fields-".concat(neetoCist.hyphenate(label), "-switch"),
802
802
  name: switchName,
803
803
  onChange: handleChange
804
804
  }, withHelpPopover(helpPopoverProps))), isCustomHeadersEnabled && /*#__PURE__*/jsxRuntime.jsx(KeyValuePairsField, {
@@ -911,7 +911,7 @@ var JsonEditor = function JsonEditor(_ref) {
911
911
  className: "space-y-2",
912
912
  children: [/*#__PURE__*/jsxRuntime.jsx(Label, _objectSpread$s(_objectSpread$s({
913
913
  required: true,
914
- "data-cy": "api-field-body"
914
+ "data-testid": "api-field-body"
915
915
  }, neetoCist.isPresent(helpPopoverProps) && {
916
916
  helpIconProps: {
917
917
  icon: Help,
@@ -939,7 +939,7 @@ var JsonEditor = function JsonEditor(_ref) {
939
939
  onMount: handleEditorDidMount
940
940
  }), error && touched && /*#__PURE__*/jsxRuntime.jsx("div", {
941
941
  className: "neeto-ui-input__error",
942
- "data-cy": "json-field-input-error",
942
+ "data-testid": "json-field-input-error",
943
943
  children: error
944
944
  })]
945
945
  })]
@@ -968,7 +968,7 @@ var SaveAsTemplate = function SaveAsTemplate(_ref) {
968
968
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
969
969
  className: classNames(["flex flex-col space-y-4", className]),
970
970
  children: [/*#__PURE__*/jsxRuntime.jsx(Switch, {
971
- "data-cy": "neeto-rules-save-as-template-switch",
971
+ "data-testid": "neeto-rules-save-as-template-switch",
972
972
  label: t("neetoRules.labels.saveAsTemplate"),
973
973
  name: switchName,
974
974
  onChange: handleChange
@@ -1075,12 +1075,12 @@ var Target$j = function Target(_ref) {
1075
1075
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1076
1076
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1077
1077
  className: "neeto-ui-text-gray-700",
1078
- "data-cy": "api-action-separator-text",
1078
+ "data-testid": "api-action-separator-text",
1079
1079
  style: "h5",
1080
1080
  weight: "normal",
1081
1081
  children: separator
1082
1082
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1083
- "data-cy": "api-action-button",
1083
+ "data-testid": "api-action-button",
1084
1084
  label: defaultLabel.toLowerCase(),
1085
1085
  style: "link",
1086
1086
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1151,7 +1151,7 @@ var ApiFields = function ApiFields(_ref2) {
1151
1151
  }), /*#__PURE__*/jsxRuntime.jsx(Input$2, {
1152
1152
  required: true,
1153
1153
  className: "mb-4",
1154
- "data-cy": "api-action-endpoint-text-field",
1154
+ "data-testid": "api-action-endpoint-text-field",
1155
1155
  label: t("neetoRules.labels.endpoint"),
1156
1156
  name: "".concat(name, ".endpoint"),
1157
1157
  placeholder: SAMPLE_ENDPOINT,
@@ -1204,7 +1204,7 @@ var Target$i = function Target(_ref) {
1204
1204
  weight: "normal",
1205
1205
  children: separator
1206
1206
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1207
- "data-cy": "custom-action-button-".concat(neetoCist.hyphenate(defaultLabel)),
1207
+ "data-testid": "custom-action-button-".concat(neetoCist.hyphenate(defaultLabel)),
1208
1208
  label: defaultLabel.toLowerCase(),
1209
1209
  style: "link",
1210
1210
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1261,7 +1261,7 @@ var Target$h = function Target(_ref) {
1261
1261
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1262
1262
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1263
1263
  className: "neeto-ui-text-gray-700",
1264
- "data-cy": "action-dropdown-seperator-text",
1264
+ "data-testid": "action-dropdown-seperator-text",
1265
1265
  style: "h5",
1266
1266
  weight: "normal",
1267
1267
  children: separator
@@ -1382,7 +1382,7 @@ var EditorAction = function EditorAction(_ref) {
1382
1382
  variables: variables,
1383
1383
  hideSlashCommands: true,
1384
1384
  className: "w-full",
1385
- "data-cy": "neeto-editor",
1385
+ "data-testid": "neeto-editor",
1386
1386
  key: name,
1387
1387
  ref: editorRef,
1388
1388
  onChange: setEditorData
@@ -1428,12 +1428,12 @@ var Target$g = function Target(_ref) {
1428
1428
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1429
1429
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1430
1430
  className: "neeto-ui-text-gray-700",
1431
- "data-cy": "action-dropdown-seperator-text",
1431
+ "data-testid": "action-dropdown-seperator-text",
1432
1432
  style: "h5",
1433
1433
  weight: "normal",
1434
1434
  children: separator
1435
1435
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1436
- "data-cy": "action-dropdown-button",
1436
+ "data-testid": "action-dropdown-button",
1437
1437
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
1438
1438
  style: "link",
1439
1439
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1501,7 +1501,7 @@ var SelectField$2 = function SelectField(_ref2) {
1501
1501
  onFocus: setFieldActive
1502
1502
  })), handleSlackChannelRefresh && action.name === "message_to_slack" && /*#__PURE__*/jsxRuntime.jsx(Button, {
1503
1503
  className: "mt-[22px]",
1504
- "data-cy": "refresh-slack-button",
1504
+ "data-testid": "refresh-slack-button",
1505
1505
  icon: Refresh,
1506
1506
  size: "medium",
1507
1507
  style: "secondary",
@@ -1547,12 +1547,12 @@ var Target$f = function Target(_ref) {
1547
1547
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1548
1548
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1549
1549
  className: "neeto-ui-text-gray-700",
1550
- "data-cy": "action-email-seperator-text",
1550
+ "data-testid": "action-email-seperator-text",
1551
1551
  style: "h5",
1552
1552
  weight: "normal",
1553
1553
  children: separator
1554
1554
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1555
- "data-cy": "email-action-button",
1555
+ "data-testid": "email-action-button",
1556
1556
  label: defaultLabel.toLowerCase(),
1557
1557
  style: "link",
1558
1558
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1651,7 +1651,7 @@ var EmailFields = function EmailFields(_ref2) {
1651
1651
  }), !selectedField.hideSubject && /*#__PURE__*/jsxRuntime.jsx(Input$2, {
1652
1652
  required: true,
1653
1653
  className: "mb-4",
1654
- "data-cy": "email-action-subject-text-field",
1654
+ "data-testid": "email-action-subject-text-field",
1655
1655
  label: t("neetoRules.labels.subject"),
1656
1656
  name: "".concat(name, ".subject"),
1657
1657
  ref: isFirstFieldInForm("subject") ? initialFocusRef : null,
@@ -1699,13 +1699,13 @@ var Target$e = function Target(_ref) {
1699
1699
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1700
1700
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1701
1701
  className: "neeto-ui-text-gray-700 mt-1",
1702
- "data-cy": "action-dropdown-seperator-text",
1702
+ "data-testid": "action-dropdown-seperator-text",
1703
1703
  style: "h5",
1704
1704
  weight: "normal",
1705
1705
  children: separator
1706
1706
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1707
1707
  label: label,
1708
- "data-cy": "action-value-input-button",
1708
+ "data-testid": "action-value-input-button",
1709
1709
  style: "link",
1710
1710
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
1711
1711
  "neeto-ui-text-accent-800": isFieldActive,
@@ -1814,7 +1814,7 @@ var InlineInput = /*#__PURE__*/react.forwardRef(function (props, ref) {
1814
1814
  autoFocus: true,
1815
1815
  required: true,
1816
1816
  className: "neeto-planner-inline-input",
1817
- "data-cy": "inline-input-field",
1817
+ "data-testid": "inline-input-field",
1818
1818
  value: inputValue,
1819
1819
  ref: function ref(node) {
1820
1820
  inputFieldEscapeHotkeyRef.current = node;
@@ -1826,7 +1826,7 @@ var InlineInput = /*#__PURE__*/react.forwardRef(function (props, ref) {
1826
1826
  }, otherProps), {}, {
1827
1827
  suffix: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1828
1828
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
1829
- "data-cy": "inline-input-submit-button",
1829
+ "data-testid": "inline-input-submit-button",
1830
1830
  disabled: !isValidValue,
1831
1831
  icon: Check,
1832
1832
  style: "text",
@@ -1834,7 +1834,7 @@ var InlineInput = /*#__PURE__*/react.forwardRef(function (props, ref) {
1834
1834
  onClick: onSubmit
1835
1835
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1836
1836
  ref: ref,
1837
- "data-cy": "inline-input-cancel-button",
1837
+ "data-testid": "inline-input-cancel-button",
1838
1838
  icon: Close,
1839
1839
  style: "text",
1840
1840
  tooltipProps: LIST_FIELD_TOOLTIP_PROPS.cancel,
@@ -1870,12 +1870,12 @@ var Target$d = function Target(_ref) {
1870
1870
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1871
1871
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1872
1872
  className: "neeto-ui-text-gray-700",
1873
- "data-cy": "list-action-separator-text",
1873
+ "data-testid": "list-action-separator-text",
1874
1874
  style: "h5",
1875
1875
  weight: "normal",
1876
1876
  children: separator
1877
1877
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1878
- "data-cy": "list-action-button",
1878
+ "data-testid": "list-action-button",
1879
1879
  label: t("neetoRules.form.list"),
1880
1880
  style: "link",
1881
1881
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -1916,12 +1916,12 @@ var ListField = function ListField(_ref2) {
1916
1916
  className: "neeto-ui-bg-white flex flex-wrap justify-between border border-dashed px-2 py-1",
1917
1917
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
1918
1918
  className: "w-4/5 overflow-x-auto",
1919
- "data-cy": "list-action-item-label",
1919
+ "data-testid": "list-action-item-label",
1920
1920
  style: "body2",
1921
1921
  children: item
1922
1922
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
1923
1923
  className: "shrink-0",
1924
- "data-cy": "list-action-delete-item-button",
1924
+ "data-testid": "list-action-delete-item-button",
1925
1925
  icon: Delete,
1926
1926
  size: "medium",
1927
1927
  style: "text",
@@ -1936,7 +1936,7 @@ var ListField = function ListField(_ref2) {
1936
1936
  children: function children(message) {
1937
1937
  return /*#__PURE__*/jsxRuntime.jsx(Typography, {
1938
1938
  className: "neeto-ui-text-error-500 neeto-ui-text-gray-700",
1939
- "data-cy": "list-action-error-message",
1939
+ "data-testid": "list-action-error-message",
1940
1940
  style: "h5",
1941
1941
  children: message
1942
1942
  });
@@ -1950,7 +1950,7 @@ var ListField = function ListField(_ref2) {
1950
1950
  }
1951
1951
  }) : /*#__PURE__*/jsxRuntime.jsx(Button, {
1952
1952
  ref: ref,
1953
- "data-cy": "list-action-add-item-button",
1953
+ "data-testid": "list-action-add-item-button",
1954
1954
  icon: Plus,
1955
1955
  label: t("neetoRules.common.addItem"),
1956
1956
  size: "medium",
@@ -1997,7 +1997,7 @@ var Target$c = function Target(_ref) {
1997
1997
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1998
1998
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
1999
1999
  className: "neeto-ui-text-gray-700",
2000
- "data-cy": "multi-select-action-separator-text",
2000
+ "data-testid": "multi-select-action-separator-text",
2001
2001
  style: "h5",
2002
2002
  weight: "normal",
2003
2003
  children: separator
@@ -2017,7 +2017,7 @@ var Target$c = function Target(_ref) {
2017
2017
  what: ""
2018
2018
  })
2019
2019
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
2020
- "data-cy": "multi-select-action-button",
2020
+ "data-testid": "multi-select-action-button",
2021
2021
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2022
2022
  style: "link",
2023
2023
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2126,7 +2126,7 @@ var Target$b = function Target(_ref) {
2126
2126
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2127
2127
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
2128
2128
  className: "neeto-ui-text-gray-700",
2129
- "data-cy": "multi-select-action-separator-text",
2129
+ "data-testid": "multi-select-action-separator-text",
2130
2130
  style: "h5",
2131
2131
  weight: "normal",
2132
2132
  children: separator
@@ -2146,7 +2146,7 @@ var Target$b = function Target(_ref) {
2146
2146
  what: ""
2147
2147
  })
2148
2148
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
2149
- "data-cy": "multi-select-action-button",
2149
+ "data-testid": "multi-select-action-button",
2150
2150
  label: option === null || option === void 0 ? void 0 : option.label.toLowerCase(),
2151
2151
  style: "link",
2152
2152
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2212,7 +2212,7 @@ var MultiSelectCheckbox$1 = function MultiSelectCheckbox(_ref2) {
2212
2212
  return /*#__PURE__*/react.createElement(Checkbox, {
2213
2213
  ref: ref,
2214
2214
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
2215
- "data-cy": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
2215
+ "data-testid": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
2216
2216
  id: option.value,
2217
2217
  key: option.value,
2218
2218
  label: option.label,
@@ -2256,12 +2256,12 @@ var Target$a = function Target(_ref) {
2256
2256
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2257
2257
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
2258
2258
  className: "neeto-ui-text-gray-700",
2259
- "data-cy": "note-action-separator-text",
2259
+ "data-testid": "note-action-separator-text",
2260
2260
  style: "h5",
2261
2261
  weight: "normal",
2262
2262
  children: separator
2263
2263
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
2264
- "data-cy": "note-action-button",
2264
+ "data-testid": "note-action-button",
2265
2265
  label: defaultLabel.toLowerCase(),
2266
2266
  style: "link",
2267
2267
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2336,12 +2336,12 @@ var Target$9 = function Target(_ref) {
2336
2336
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2337
2337
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsxRuntime.jsx(Typography, {
2338
2338
  className: "neeto-ui-text-gray-700",
2339
- "data-cy": "action-radio-seperator-text",
2339
+ "data-testid": "action-radio-seperator-text",
2340
2340
  style: "h5",
2341
2341
  weight: "normal",
2342
2342
  children: separator
2343
2343
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
2344
- "data-cy": "action-radio-button",
2344
+ "data-testid": "action-radio-button",
2345
2345
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2346
2346
  style: "link",
2347
2347
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -2469,7 +2469,7 @@ var STYLES = {
2469
2469
  };
2470
2470
  var MultiValueRemove = function MultiValueRemove(props) {
2471
2471
  return /*#__PURE__*/jsxRuntime.jsx(reactSelect.components.MultiValueRemove, _objectSpread$m(_objectSpread$m({}, props), {}, {
2472
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "".concat(dasherize(props.data.label), "-remove-icon"))),
2472
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "".concat(dasherize(props.data.label), "-remove-icon"))),
2473
2473
  children: /*#__PURE__*/jsxRuntime.jsx(Close, {
2474
2474
  size: 16
2475
2475
  })
@@ -2490,7 +2490,7 @@ var ValueContainer = function ValueContainer(_ref) {
2490
2490
  rest = _children.slice(1);
2491
2491
  var shouldCollapse = !isFocused && value.length > visiblePhoneNumbersCount;
2492
2492
  return /*#__PURE__*/jsxRuntime.jsxs(reactSelect.components.ValueContainer, _objectSpread$m(_objectSpread$m({}, props), {}, {
2493
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "multi-phone-number-input-container")),
2493
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "multi-phone-number-input-container")),
2494
2494
  children: [shouldCollapse ? firstChild.slice(0, visiblePhoneNumbersCount) : firstChild, shouldCollapse && /*#__PURE__*/jsxRuntime.jsx(Tag, {
2495
2495
  style: "secondary",
2496
2496
  label: t("neetoRules.labels.remainingItemsCount", {
@@ -2501,7 +2501,7 @@ var ValueContainer = function ValueContainer(_ref) {
2501
2501
  };
2502
2502
  var ClearIndicator = function ClearIndicator(props) {
2503
2503
  return /*#__PURE__*/jsxRuntime.jsx(reactSelect.components.ClearIndicator, _objectSpread$m(_objectSpread$m({}, props), {}, {
2504
- innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-cy", "clear-all-button")),
2504
+ innerProps: _objectSpread$m(_objectSpread$m({}, props.innerProps), {}, _defineProperty({}, "data-testid", "clear-all-button")),
2505
2505
  children: /*#__PURE__*/jsxRuntime.jsx(Close, {
2506
2506
  className: "cursor-pointer",
2507
2507
  size: 16
@@ -2592,7 +2592,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2592
2592
  children: /*#__PURE__*/jsxRuntime.jsx(Label, {
2593
2593
  required: true,
2594
2594
  className: "neeto-ui-email-input__label",
2595
- "data-cy": "".concat(dasherize(label), "-input-label"),
2595
+ "data-testid": "".concat(dasherize(label), "-input-label"),
2596
2596
  children: label
2597
2597
  })
2598
2598
  }), /*#__PURE__*/jsxRuntime.jsx(CreatableSelect, _objectSpread$l({
@@ -2628,7 +2628,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2628
2628
  value: value
2629
2629
  }, otherProps))), !!error && /*#__PURE__*/jsxRuntime.jsxs("p", {
2630
2630
  className: "neeto-ui-input__error",
2631
- "data-cy": "".concat(dasherize(label), "-input-error"),
2631
+ "data-testid": "".concat(dasherize(label), "-input-error"),
2632
2632
  children: [formatErrorMessage(error), isFilterPhoneNumbersLinkVisible && /*#__PURE__*/jsxRuntime.jsxs("span", {
2633
2633
  className: "neeto-ui-font-semibold cursor-pointer",
2634
2634
  onClick: handleFilterPhoneNumbers,
@@ -2636,7 +2636,7 @@ var MultiPhoneNumberInput = /*#__PURE__*/react.forwardRef(function (_ref, ref) {
2636
2636
  })]
2637
2637
  }), /*#__PURE__*/jsxRuntime.jsx("p", {
2638
2638
  className: "neeto-ui-input__help-text",
2639
- "data-cy": "".concat(dasherize(label), "-input-help"),
2639
+ "data-testid": "".concat(dasherize(label), "-input-help"),
2640
2640
  children: t("neetoRules.helpTexts.phoneNumber")
2641
2641
  })]
2642
2642
  });
@@ -2711,12 +2711,12 @@ var Target$8 = function Target(_ref) {
2711
2711
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
2712
2712
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
2713
2713
  className: "neeto-ui-text-gray-700",
2714
- "data-cy": "sms-action-separator-text",
2714
+ "data-testid": "sms-action-separator-text",
2715
2715
  style: "h5",
2716
2716
  weight: "normal",
2717
2717
  children: separator
2718
2718
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
2719
- "data-cy": "sms-action-button",
2719
+ "data-testid": "sms-action-button",
2720
2720
  label: defaultLabel.toLowerCase(),
2721
2721
  style: "link",
2722
2722
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3250,7 +3250,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3250
3250
  className: "flex items-center space-x-2",
3251
3251
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
3252
3252
  className: "shrink-0 rtl:rotate-180",
3253
- "data-cy": "back-button",
3253
+ "data-testid": "back-button",
3254
3254
  icon: Left,
3255
3255
  size: "medium",
3256
3256
  style: "text",
@@ -3268,12 +3268,12 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3268
3268
  }));
3269
3269
  }
3270
3270
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
3271
- "data-cy": "action-sub-item-title",
3271
+ "data-testid": "action-sub-item-title",
3272
3272
  style: "h3",
3273
3273
  children: header
3274
3274
  })]
3275
3275
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
3276
- "data-cy": "action-sub-item-description",
3276
+ "data-testid": "action-sub-item-description",
3277
3277
  style: "body2",
3278
3278
  children: t("neetoRules.form.addActionSubItemDescription")
3279
3279
  })]
@@ -3302,7 +3302,7 @@ var ActionSubItemPanel = function ActionSubItemPanel() {
3302
3302
  })]
3303
3303
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
3304
3304
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
3305
- "data-cy": "continue-button",
3305
+ "data-testid": "continue-button",
3306
3306
  onClick: handleContinue,
3307
3307
  children: t("neetoRules.buttons.continue")
3308
3308
  })
@@ -3338,6 +3338,7 @@ var Target$7 = function Target(_ref) {
3338
3338
  var isFieldInvalid = meta.touched && meta.error;
3339
3339
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
3340
3340
  label: label,
3341
+ "data-testid": "condition-value-select-date-button",
3341
3342
  style: "link",
3342
3343
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3343
3344
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3433,7 +3434,7 @@ var Target$6 = function Target(_ref) {
3433
3434
  var label = valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
3434
3435
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
3435
3436
  label: label,
3436
- "data-cy": "condition-value-input-button",
3437
+ "data-testid": "condition-value-input-button",
3437
3438
  style: "link",
3438
3439
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3439
3440
  "neeto-ui-text-accent-800": isFieldActive,
@@ -3511,7 +3512,7 @@ var Target$5 = function Target(_ref) {
3511
3512
  weight: "normal",
3512
3513
  children: t("neetoRules.common.or")
3513
3514
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
3514
- "data-cy": "condition-value-multi-select-field",
3515
+ "data-testid": "condition-value-multi-select-field",
3515
3516
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3516
3517
  style: "link",
3517
3518
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3526,7 +3527,7 @@ var Target$5 = function Target(_ref) {
3526
3527
  }, idx);
3527
3528
  })
3528
3529
  }) : /*#__PURE__*/jsxRuntime.jsx(Button, {
3529
- "data-cy": "condition-value-multi-select-field",
3530
+ "data-testid": "condition-value-multi-select-field",
3530
3531
  label: defaultLabel,
3531
3532
  style: "link",
3532
3533
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3619,7 +3620,7 @@ var Target$4 = function Target(_ref) {
3619
3620
  weight: "normal",
3620
3621
  children: t("neetoRules.common.or")
3621
3622
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
3622
- "data-cy": "condition-value-multi-select-field",
3623
+ "data-testid": "condition-value-multi-select-field",
3623
3624
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3624
3625
  style: "link",
3625
3626
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3634,7 +3635,7 @@ var Target$4 = function Target(_ref) {
3634
3635
  }, idx);
3635
3636
  })
3636
3637
  }) : /*#__PURE__*/jsxRuntime.jsx(Button, {
3637
- "data-cy": "condition-value-multi-select-field",
3638
+ "data-testid": "condition-value-multi-select-field",
3638
3639
  label: defaultLabel,
3639
3640
  style: "link",
3640
3641
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3686,7 +3687,7 @@ var MultiSelectCheckbox = function MultiSelectCheckbox(_ref2) {
3686
3687
  return /*#__PURE__*/react.createElement(Checkbox, _objectSpread$i({
3687
3688
  ref: ref,
3688
3689
  checked: selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value),
3689
- "data-cy": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
3690
+ "data-testid": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
3690
3691
  id: option.value,
3691
3692
  key: option.value,
3692
3693
  label: option.label,
@@ -3774,7 +3775,7 @@ var Target$3 = function Target(_ref) {
3774
3775
  weight: "normal",
3775
3776
  children: t("neetoRules.common.or")
3776
3777
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
3777
- "data-cy": "condition-value-multi-select-field",
3778
+ "data-testid": "condition-value-multi-select-field",
3778
3779
  label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3779
3780
  style: "link",
3780
3781
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3789,7 +3790,7 @@ var Target$3 = function Target(_ref) {
3789
3790
  }, idx);
3790
3791
  })
3791
3792
  }) : /*#__PURE__*/jsxRuntime.jsx(Button, {
3792
- "data-cy": "condition-value-multi-select-field",
3793
+ "data-testid": "condition-value-multi-select-field",
3793
3794
  label: defaultLabel,
3794
3795
  style: "link",
3795
3796
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3833,7 +3834,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref2) {
3833
3834
  isCreateable: true,
3834
3835
  isMulti: true,
3835
3836
  className: "mt-4 w-full",
3836
- "data-cy": "multi-select-create-container",
3837
+ "data-testid": "multi-select-create-container",
3837
3838
  innerRef: ref,
3838
3839
  label: t("neetoRules.labels.selectValues"),
3839
3840
  placeholder: t("neetoRules.placeholders.multiSelect"),
@@ -3877,7 +3878,7 @@ var Target$2 = function Target(_ref) {
3877
3878
  };
3878
3879
  }, [field.value, options]);
3879
3880
  return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread$h({
3880
- "data-cy": "condition-value-dropdown-button",
3881
+ "data-testid": "condition-value-dropdown-button",
3881
3882
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3882
3883
  style: "link",
3883
3884
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -3936,7 +3937,7 @@ var RadioField$1 = function RadioField(_ref2) {
3936
3937
  className: "w-full",
3937
3938
  children: [isSearchable && /*#__PURE__*/jsxRuntime.jsx(StickySidebarHeader, {
3938
3939
  children: /*#__PURE__*/jsxRuntime.jsx(Input$1, {
3939
- "data-cy": "search-text-field",
3940
+ "data-testid": "search-text-field",
3940
3941
  placeholder: t("neetoRules.common.search"),
3941
3942
  prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
3942
3943
  value: searchTerm,
@@ -3967,7 +3968,7 @@ var RadioField$1 = function RadioField(_ref2) {
3967
3968
  })
3968
3969
  })) : /*#__PURE__*/jsxRuntime.jsx("div", {
3969
3970
  className: "py-1 text-sm",
3970
- "data-cy": "no-options-menu-item",
3971
+ "data-testid": "no-options-menu-item",
3971
3972
  children: t("neetoRules.common.noOptions")
3972
3973
  })]
3973
3974
  });
@@ -3981,8 +3982,8 @@ var Target$1 = function Target(_ref) {
3981
3982
  placeholder = _ref.placeholder,
3982
3983
  _ref$onClick = _ref.onClick,
3983
3984
  _onClick = _ref$onClick === void 0 ? neetoCist.noop : _ref$onClick,
3984
- _ref$dataCy = _ref.dataCy,
3985
- dataCy = _ref$dataCy === void 0 ? "condition-verb-dropdown-button" : _ref$dataCy;
3985
+ _ref$dataTestid = _ref.dataTestid,
3986
+ dataTestid = _ref$dataTestid === void 0 ? "condition-verb-dropdown-button" : _ref$dataTestid;
3986
3987
  var _useTranslation = reactI18next.useTranslation(),
3987
3988
  t = _useTranslation.t;
3988
3989
  var _useField = formik.useField(name),
@@ -4004,7 +4005,7 @@ var Target$1 = function Target(_ref) {
4004
4005
  };
4005
4006
  }, [field.value, dropdownOptions]);
4006
4007
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
4007
- "data-cy": dataCy,
4008
+ "data-testid": dataTestid,
4008
4009
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
4009
4010
  style: "link",
4010
4011
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -4095,6 +4096,7 @@ var Target = function Target(_ref) {
4095
4096
  var isFieldInvalid = meta.touched && meta.error;
4096
4097
  return /*#__PURE__*/jsxRuntime.jsx(Button, {
4097
4098
  label: label,
4099
+ "data-testid": "condition-value-select-time-button",
4098
4100
  style: "link",
4099
4101
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
4100
4102
  "neeto-ui-text-accent-800": isFieldActive,
@@ -4215,11 +4217,11 @@ var FieldPanel = function FieldPanel() {
4215
4217
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4216
4218
  className: "flex flex-col space-y-2",
4217
4219
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
4218
- "data-cy": "condition-title",
4220
+ "data-testid": "condition-title",
4219
4221
  style: "h3",
4220
4222
  children: [index ? logicalOperatorLabel : conditionLabel, "..."]
4221
4223
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4222
- "data-cy": "condition-description",
4224
+ "data-testid": "condition-description",
4223
4225
  style: "body2",
4224
4226
  children: t("neetoRules.form.addConditionDescription")
4225
4227
  })]
@@ -4239,7 +4241,7 @@ var FieldPanel = function FieldPanel() {
4239
4241
  })
4240
4242
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4241
4243
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4242
- "data-cy": "continue-button",
4244
+ "data-testid": "continue-button",
4243
4245
  onClick: handleContinue,
4244
4246
  children: t("neetoRules.buttons.continue")
4245
4247
  })
@@ -4305,7 +4307,7 @@ var ValueField = function ValueField(_ref) {
4305
4307
  if (fieldType === constants.CONDITION_VALUE_TYPES.select || fieldType === constants.CONDITION_VALUE_TYPES.dropdown) {
4306
4308
  return isTarget ? /*#__PURE__*/jsxRuntime.jsx(SelectField$1.Target, {
4307
4309
  onClick: onClick,
4308
- dataCy: "select-value-dropdown-button",
4310
+ dataTestid: "select-value-dropdown-button",
4309
4311
  dropdownOptions: options,
4310
4312
  name: "".concat(name, ".value")
4311
4313
  }) : /*#__PURE__*/jsxRuntime.jsx(SelectField$1, {
@@ -4458,12 +4460,12 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4458
4460
  }));
4459
4461
  }
4460
4462
  }), /*#__PURE__*/jsxRuntime.jsxs(Typography, {
4461
- "data-cy": "condition-verb-and-value-title",
4463
+ "data-testid": "condition-verb-and-value-title",
4462
4464
  style: "h3",
4463
4465
  children: [index ? logicalOperatorLabel : conditionLabel, " ", fieldLabel, "..."]
4464
4466
  })]
4465
4467
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4466
- "data-cy": "condition-verb-and-value-description",
4468
+ "data-testid": "condition-verb-and-value-description",
4467
4469
  style: "body2",
4468
4470
  children: t("neetoRules.form.addConditionVerbAndValueDescription")
4469
4471
  })]
@@ -4488,7 +4490,7 @@ var VerbAndValuePanel = function VerbAndValuePanel() {
4488
4490
  })
4489
4491
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4490
4492
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4491
- "data-cy": "continue-button",
4493
+ "data-testid": "continue-button",
4492
4494
  onClick: handleContinue,
4493
4495
  children: t("neetoRules.buttons.continue")
4494
4496
  })
@@ -4793,11 +4795,11 @@ var EventsPanel = function EventsPanel() {
4793
4795
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
4794
4796
  className: "flex flex-col space-y-2",
4795
4797
  children: [/*#__PURE__*/jsxRuntime.jsxs(Typography, {
4796
- "data-cy": "event-title",
4798
+ "data-testid": "event-title",
4797
4799
  style: "h3",
4798
4800
  children: [t("neetoRules.common.when"), "..."]
4799
4801
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4800
- "data-cy": "event-description",
4802
+ "data-testid": "event-description",
4801
4803
  style: "body2",
4802
4804
  children: t("neetoRules.form.addEventDescription")
4803
4805
  })]
@@ -4808,7 +4810,7 @@ var EventsPanel = function EventsPanel() {
4808
4810
  }),
4809
4811
  children: [isSearchable && /*#__PURE__*/jsxRuntime.jsx(StickySidebarHeader, {
4810
4812
  children: /*#__PURE__*/jsxRuntime.jsx(Input$1, {
4811
- "data-cy": "search-text-field",
4813
+ "data-testid": "search-text-field",
4812
4814
  placeholder: t("neetoRules.common.search"),
4813
4815
  prefix: /*#__PURE__*/jsxRuntime.jsx(Search, {}),
4814
4816
  value: searchTerm,
@@ -4830,7 +4832,7 @@ var EventsPanel = function EventsPanel() {
4830
4832
  ref: ref,
4831
4833
  onFocus: setFieldActive
4832
4834
  } : {}), {}, {
4833
- "data-cy": "".concat(utils.joinHyphenCase(option.label), "-radio"),
4835
+ "data-testid": "".concat(utils.joinHyphenCase(option.label), "-radio"),
4834
4836
  key: option.value,
4835
4837
  label: option.label,
4836
4838
  value: option.value
@@ -4841,7 +4843,7 @@ var EventsPanel = function EventsPanel() {
4841
4843
  ref: ref
4842
4844
  } : {}), {}, {
4843
4845
  checked: eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(option.value),
4844
- "data-cy": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
4846
+ "data-testid": "".concat(utils.joinHyphenCase(option.label), "-checkbox"),
4845
4847
  id: option.value,
4846
4848
  key: option.value,
4847
4849
  label: option.label,
@@ -4852,17 +4854,17 @@ var EventsPanel = function EventsPanel() {
4852
4854
  }));
4853
4855
  }) : /*#__PURE__*/jsxRuntime.jsx("div", {
4854
4856
  className: "py-1 text-sm",
4855
- "data-cy": "no-options-menu-item",
4857
+ "data-testid": "no-options-menu-item",
4856
4858
  children: t("neetoRules.common.noOptions")
4857
4859
  }), error && touched && /*#__PURE__*/jsxRuntime.jsx("div", {
4858
4860
  className: "neeto-ui-input__error",
4859
- "data-cy": "event-field-input-error",
4861
+ "data-testid": "event-field-input-error",
4860
4862
  children: error
4861
4863
  })]
4862
4864
  })]
4863
4865
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4864
4866
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4865
- "data-cy": "continue-button",
4867
+ "data-testid": "continue-button",
4866
4868
  onClick: handleContinue,
4867
4869
  children: t("neetoRules.buttons.continue")
4868
4870
  })
@@ -4935,7 +4937,7 @@ var PerformerPanel = function PerformerPanel() {
4935
4937
  className: "flex items-center space-x-2",
4936
4938
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
4937
4939
  className: "shrink-0 rtl:rotate-180",
4938
- "data-cy": "back-button",
4940
+ "data-testid": "back-button",
4939
4941
  icon: Left,
4940
4942
  size: "medium",
4941
4943
  style: "text",
@@ -4952,12 +4954,12 @@ var PerformerPanel = function PerformerPanel() {
4952
4954
  }));
4953
4955
  }
4954
4956
  }), /*#__PURE__*/jsxRuntime.jsxs(Typography, {
4955
- "data-cy": "performer-title",
4957
+ "data-testid": "performer-title",
4956
4958
  style: "h3",
4957
4959
  children: [t("neetoRules.form.actionTriggeredBy"), "..."]
4958
4960
  })]
4959
4961
  }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
4960
- "data-cy": "performer-description",
4962
+ "data-testid": "performer-description",
4961
4963
  style: "body2",
4962
4964
  children: t("neetoRules.form.addPerformerDescription")
4963
4965
  })]
@@ -4984,7 +4986,7 @@ var PerformerPanel = function PerformerPanel() {
4984
4986
  })
4985
4987
  }), /*#__PURE__*/jsxRuntime.jsx(Panel.Footer, {
4986
4988
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
4987
- "data-cy": "continue-button",
4989
+ "data-testid": "continue-button",
4988
4990
  onClick: handleContinue,
4989
4991
  children: t("neetoRules.buttons.continue")
4990
4992
  })
@@ -5520,7 +5522,7 @@ var ActionItem = function ActionItem(_ref) {
5520
5522
  weight: "normal",
5521
5523
  children: label
5522
5524
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
5523
- "data-cy": "action-dropdown-button",
5525
+ "data-testid": "action-dropdown-button",
5524
5526
  label: selectedLabel.toLowerCase(),
5525
5527
  style: "link",
5526
5528
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -5556,7 +5558,7 @@ var Card = function Card(_ref) {
5556
5558
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
5557
5559
  children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
5558
5560
  className: "neeto-ui-text-gray-600",
5559
- "data-cy": "".concat(utils.joinHyphenCase(title), "-card-title"),
5561
+ "data-testid": "".concat(utils.joinHyphenCase(title), "-card-title"),
5560
5562
  style: "h4",
5561
5563
  children: title
5562
5564
  }), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -5643,7 +5645,7 @@ var Actions = function Actions(_ref) {
5643
5645
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
5644
5646
  className: "flex flex-wrap shrink-0 self-center",
5645
5647
  children: [showButton && index === actions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button, {
5646
- "data-cy": "add-action-button",
5648
+ "data-testid": "add-action-button",
5647
5649
  icon: Plus,
5648
5650
  size: "medium",
5649
5651
  style: "text",
@@ -5656,7 +5658,7 @@ var Actions = function Actions(_ref) {
5656
5658
  setShouldOpenPanel(true);
5657
5659
  }
5658
5660
  }), actions.length > 1 && /*#__PURE__*/jsxRuntime.jsx(Button, {
5659
- "data-cy": "delete-action-button-".concat(index),
5661
+ "data-testid": "delete-action-button-".concat(index),
5660
5662
  icon: Delete,
5661
5663
  size: "medium",
5662
5664
  style: "text",
@@ -5699,7 +5701,7 @@ var LogicalOperator = function LogicalOperator(_ref) {
5699
5701
  options: logicalOperatorOptions,
5700
5702
  value: name,
5701
5703
  customTarget: /*#__PURE__*/jsxRuntime.jsx(Button, {
5702
- "data-cy": "logic-operator-button",
5704
+ "data-testid": "logic-operator-button",
5703
5705
  icon: Down,
5704
5706
  iconSize: 16,
5705
5707
  label: logicOperationLabel,
@@ -5961,7 +5963,7 @@ var Conditions = function Conditions(_ref) {
5961
5963
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
5962
5964
  className: "flex",
5963
5965
  children: [index === conditions.length - 1 && /*#__PURE__*/jsxRuntime.jsx(Button, {
5964
- "data-cy": "add-condition-button",
5966
+ "data-testid": "add-condition-button",
5965
5967
  icon: Plus,
5966
5968
  size: "medium",
5967
5969
  style: "text",
@@ -5973,7 +5975,7 @@ var Conditions = function Conditions(_ref) {
5973
5975
  return handleAddCondition(arrayHelpers, condition.joinType);
5974
5976
  }
5975
5977
  }), (allowEmpty || index !== 0) && /*#__PURE__*/jsxRuntime.jsx(Button, {
5976
- "data-cy": "delete-condition-button-".concat(index),
5978
+ "data-testid": "delete-condition-button-".concat(index),
5977
5979
  icon: Delete,
5978
5980
  size: "medium",
5979
5981
  style: "text",
@@ -5989,7 +5991,7 @@ var Conditions = function Conditions(_ref) {
5989
5991
  }, index);
5990
5992
  }), ramda.isEmpty(conditions) && /*#__PURE__*/jsxRuntime.jsx(Button, {
5991
5993
  className: "neeto-ui-text-gray-600 me-auto",
5992
- "data-cy": "add-condition-button",
5994
+ "data-testid": "add-condition-button",
5993
5995
  label: t("neetoRules.form.addCondition"),
5994
5996
  style: "text",
5995
5997
  onClick: function onClick() {
@@ -5998,7 +6000,7 @@ var Conditions = function Conditions(_ref) {
5998
6000
  }), isCallback && neetoCist.isNotEmpty(conditions) && /*#__PURE__*/jsxRuntime.jsx("div", {
5999
6001
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
6000
6002
  className: "mt-2",
6001
- "data-cy": "preview-callback-button",
6003
+ "data-testid": "preview-callback-button",
6002
6004
  icon: Eye,
6003
6005
  label: t("neetoRules.common.preview"),
6004
6006
  style: "secondary",
@@ -6101,7 +6103,7 @@ var AddDelay = function AddDelay(_ref) {
6101
6103
  })]
6102
6104
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
6103
6105
  className: "shrink-0",
6104
- "data-cy": "delete-delay-button",
6106
+ "data-testid": "delete-delay-button",
6105
6107
  icon: Delete,
6106
6108
  size: "medium",
6107
6109
  style: "text",
@@ -6175,7 +6177,7 @@ var Performer = function Performer(_ref) {
6175
6177
  weight: "normal",
6176
6178
  children: t("neetoRules.common.by")
6177
6179
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
6178
- "data-cy": "event-performer-dropdown",
6180
+ "data-testid": "event-performer-dropdown",
6179
6181
  label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
6180
6182
  style: "link",
6181
6183
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6261,7 +6263,7 @@ var Events = function Events(_ref) {
6261
6263
  weight: "normal",
6262
6264
  children: t("neetoRules.common.or")
6263
6265
  }), /*#__PURE__*/jsxRuntime.jsx(Button, {
6264
- "data-cy": "condition-value-multi-select-field",
6266
+ "data-testid": "condition-value-multi-select-field",
6265
6267
  label: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
6266
6268
  style: "link",
6267
6269
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6273,7 +6275,7 @@ var Events = function Events(_ref) {
6273
6275
  }, idx);
6274
6276
  })
6275
6277
  }) : /*#__PURE__*/jsxRuntime.jsx(Button, {
6276
- "data-cy": "condition-value-multi-select-field",
6278
+ "data-testid": "condition-value-multi-select-field",
6277
6279
  label: defaultLabel,
6278
6280
  style: "link",
6279
6281
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
@@ -6359,8 +6361,7 @@ var EventConditions = function EventConditions(_ref) {
6359
6361
  }), showAddButton && /*#__PURE__*/jsxRuntime.jsx(Tooltip, _objectSpread$8(_objectSpread$8({}, tooltipProps), {}, {
6360
6362
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
6361
6363
  children: /*#__PURE__*/jsxRuntime.jsx(Button, {
6362
- "data-cy": "add-condition-button",
6363
- "data-test-id": "automation-rules-add-events-button",
6364
+ "data-testid": "add-condition-button",
6364
6365
  disabled: isConditionsEmpty,
6365
6366
  icon: Plus,
6366
6367
  size: "medium",
@@ -6468,7 +6469,7 @@ var RadioField = function RadioField(_ref) {
6468
6469
  className: "my-6",
6469
6470
  children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
6470
6471
  className: "mb-4",
6471
- "data-cy": "radio-field-label",
6472
+ "data-testid": "radio-field-label",
6472
6473
  children: label || (elementProps === null || elementProps === void 0 ? void 0 : elementProps.label)
6473
6474
  }), /*#__PURE__*/jsxRuntime.jsx(Radio, _objectSpread$5(_objectSpread$5({
6474
6475
  name: "".concat(name, ".value")
@@ -6914,7 +6915,7 @@ var Form = function Form(_ref) {
6914
6915
  onClick: handleCancel
6915
6916
  },
6916
6917
  submitButtonProps: {
6917
- "data-cy": "form-submit-button"
6918
+ "data-testid": "form-submit-button"
6918
6919
  }
6919
6920
  })
6920
6921
  })]