@pingux/astro 2.128.0-alpha.0 → 2.128.0-alpha.1

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.
@@ -71,8 +71,7 @@ var CollectionTab = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
71
71
  }, (0, _reactAria.mergeProps)(focusProps, hoverProps, tabProps), (0, _pendoID.getPendoID)('Tab'), {
72
72
  ref: tabRef
73
73
  }, itemProps, {
74
- title: itemProps === null || itemProps === void 0 ? void 0 : itemProps.textValue,
75
- "data-testid": "test-me"
74
+ title: itemProps === null || itemProps === void 0 ? void 0 : itemProps.textValue
76
75
  }), (0, _react2.jsx)(_react["default"].Fragment, null, itemProps === null || itemProps === void 0 ? void 0 : itemProps.icon, (0, _react2.jsx)(_.Text, (0, _extends2["default"])({
77
76
  variant: "tabLabel"
78
77
  }, itemProps === null || itemProps === void 0 ? void 0 : itemProps.tabLabelProps), rendered), isSelected && !isDisabled && (0, _react2.jsx)(TabLine, itemProps === null || itemProps === void 0 ? void 0 : itemProps.tabLineProps))), slots === null || slots === void 0 ? void 0 : slots.afterTab);
@@ -238,7 +238,8 @@ var CustomPanelProps = function CustomPanelProps() {
238
238
  }, function (item) {
239
239
  return (0, _react2.jsx)(_index.Tab, {
240
240
  key: item.name,
241
- title: item.name
241
+ title: item.name,
242
+ "data-testid": "testing-".concat(item.name)
242
243
  }, item.children);
243
244
  });
244
245
  };
@@ -93,7 +93,9 @@ var getComponent = function getComponent() {
93
93
  return (0, _react2.jsx)(_Tab["default"], (0, _extends2["default"])({
94
94
  key: name,
95
95
  title: name
96
- }, tabProps), children);
96
+ }, tabProps, {
97
+ "data-testid": "testing-".concat(name)
98
+ }), children);
97
99
  }))
98
100
  // </CacheProvider>
99
101
  );
@@ -523,7 +525,7 @@ test('tooltip renders on tab\'s hover in `tooltip` mode', /*#__PURE__*/(0, _asyn
523
525
  // fireEvent.mouseMove(tab1);
524
526
  // fireEvent.mouseEnter(tab1);
525
527
  // await userEvent.hover(tab1);
526
- test = _testWrapper.screen.getAllByTestId('test-me')[1];
528
+ test = _testWrapper.screen.getByTestId('testing-Tab 2');
527
529
  _testWrapper.fireEvent.mouseMove(test);
528
530
  _testWrapper.fireEvent.mouseEnter(test);
529
531
  _context9.next = 7;
@@ -58,8 +58,7 @@ export var CollectionTab = /*#__PURE__*/forwardRef(function (props, ref) {
58
58
  }, mergeProps(focusProps, hoverProps, tabProps), getPendoID('Tab'), {
59
59
  ref: tabRef
60
60
  }, itemProps, {
61
- title: itemProps === null || itemProps === void 0 ? void 0 : itemProps.textValue,
62
- "data-testid": "test-me"
61
+ title: itemProps === null || itemProps === void 0 ? void 0 : itemProps.textValue
63
62
  }), ___EmotionJSX(React.Fragment, null, itemProps === null || itemProps === void 0 ? void 0 : itemProps.icon, ___EmotionJSX(Text, _extends({
64
63
  variant: "tabLabel"
65
64
  }, itemProps === null || itemProps === void 0 ? void 0 : itemProps.tabLabelProps), rendered), isSelected && !isDisabled && ___EmotionJSX(TabLine, itemProps === null || itemProps === void 0 ? void 0 : itemProps.tabLineProps))), slots === null || slots === void 0 ? void 0 : slots.afterTab);
@@ -216,7 +216,8 @@ export var CustomPanelProps = function CustomPanelProps() {
216
216
  }, function (item) {
217
217
  return ___EmotionJSX(Tab, {
218
218
  key: item.name,
219
- title: item.name
219
+ title: item.name,
220
+ "data-testid": "testing-".concat(item.name)
220
221
  }, item.children);
221
222
  });
222
223
  };
@@ -92,7 +92,9 @@ var getComponent = function getComponent() {
92
92
  return ___EmotionJSX(Tab, _extends({
93
93
  key: name,
94
94
  title: name
95
- }, tabProps), children);
95
+ }, tabProps, {
96
+ "data-testid": "testing-".concat(name)
97
+ }), children);
96
98
  }))
97
99
  // </CacheProvider>
98
100
  );
@@ -522,7 +524,7 @@ test('tooltip renders on tab\'s hover in `tooltip` mode', /*#__PURE__*/_asyncToG
522
524
  // fireEvent.mouseMove(tab1);
523
525
  // fireEvent.mouseEnter(tab1);
524
526
  // await userEvent.hover(tab1);
525
- test = screen.getAllByTestId('test-me')[1];
527
+ test = screen.getByTestId('testing-Tab 2');
526
528
  fireEvent.mouseMove(test);
527
529
  fireEvent.mouseEnter(test);
528
530
  _context9.next = 7;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.128.0-alpha.0",
3
+ "version": "2.128.0-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",