@reltio/components 1.4.2301 → 1.4.2302

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.
@@ -112,15 +112,14 @@ describe('CrosswalkDateEditor tests', function () {
112
112
  switch (_a.label) {
113
113
  case 0:
114
114
  user = setUp().user;
115
- newDate = '10/10/2021';
116
- return [4 /*yield*/, user.type(react_2.screen.getByRole('textbox'), '01/01/2020')];
115
+ newDate = '10/10/2021 01:01:00 AM';
116
+ return [4 /*yield*/, user.clear(react_2.screen.getByRole('textbox'))];
117
117
  case 1:
118
118
  _a.sent();
119
- expect(react_2.screen.getByDisplayValue('01/01/2020 12:00:00 AM')).toBeInTheDocument();
120
- return [4 /*yield*/, user.type(react_2.screen.getByRole('textbox'), newDate)];
119
+ return [4 /*yield*/, user.type(react_2.screen.getByRole('textbox'), newDate, { skipClick: true })];
121
120
  case 2:
122
121
  _a.sent();
123
- expect(react_2.screen.getByDisplayValue('10/10/2021 12:00:00 AM')).toBeInTheDocument();
122
+ expect(react_2.screen.getByDisplayValue(newDate)).toBeInTheDocument();
124
123
  expect(defaultProps.onChange).not.toHaveBeenCalled();
125
124
  return [4 /*yield*/, user.tab()];
126
125
  case 3:
@@ -107,15 +107,14 @@ describe('CrosswalkDateEditor tests', function () {
107
107
  switch (_a.label) {
108
108
  case 0:
109
109
  user = setUp().user;
110
- newDate = '10/10/2021';
111
- return [4 /*yield*/, user.type(screen.getByRole('textbox'), '01/01/2020')];
110
+ newDate = '10/10/2021 01:01:00 AM';
111
+ return [4 /*yield*/, user.clear(screen.getByRole('textbox'))];
112
112
  case 1:
113
113
  _a.sent();
114
- expect(screen.getByDisplayValue('01/01/2020 12:00:00 AM')).toBeInTheDocument();
115
- return [4 /*yield*/, user.type(screen.getByRole('textbox'), newDate)];
114
+ return [4 /*yield*/, user.type(screen.getByRole('textbox'), newDate, { skipClick: true })];
116
115
  case 2:
117
116
  _a.sent();
118
- expect(screen.getByDisplayValue('10/10/2021 12:00:00 AM')).toBeInTheDocument();
117
+ expect(screen.getByDisplayValue(newDate)).toBeInTheDocument();
119
118
  expect(defaultProps.onChange).not.toHaveBeenCalled();
120
119
  return [4 /*yield*/, user.tab()];
121
120
  case 3:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.2301",
3
+ "version": "1.4.2302",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./index.js",