@reltio/components 1.4.2092 → 1.4.2094
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.
|
@@ -137,7 +137,7 @@ var setUp = function (props) {
|
|
|
137
137
|
return __assign(__assign({}, render(React.createElement(BasicTable, __assign({}, props)))), { user: user });
|
|
138
138
|
};
|
|
139
139
|
describe('basic table tests', function () {
|
|
140
|
-
|
|
140
|
+
beforeEach(function () {
|
|
141
141
|
jest.clearAllMocks();
|
|
142
142
|
});
|
|
143
143
|
it('should not render Table when columnsData is empty array', function () {
|
|
@@ -207,9 +207,11 @@ describe('basic table tests', function () {
|
|
|
207
207
|
expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
|
|
208
208
|
expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).toBeInTheDocument();
|
|
209
209
|
dragIndicator = within(getCellByIndexes(1, 0)).getByRole('button', { name: 'drag el' });
|
|
210
|
+
act(function () {
|
|
211
|
+
fireEvent.mouseDown(dragIndicator, mouse[0]);
|
|
212
|
+
});
|
|
210
213
|
return [4 /*yield*/, act(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
211
214
|
return __generator(this, function (_a) {
|
|
212
|
-
fireEvent.mouseDown(dragIndicator, mouse[0]);
|
|
213
215
|
fireEvent.mouseMove(dragIndicator, mouse[1]);
|
|
214
216
|
return [2 /*return*/];
|
|
215
217
|
});
|
|
@@ -221,14 +223,9 @@ describe('basic table tests', function () {
|
|
|
221
223
|
expect(within(getCellByIndexes(0, 1)).queryByText('row 1 value 3')).not.toBeInTheDocument();
|
|
222
224
|
expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
|
|
223
225
|
expect(within(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).not.toBeInTheDocument();
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
return [2 /*return*/];
|
|
228
|
-
});
|
|
229
|
-
}); })];
|
|
230
|
-
case 4:
|
|
231
|
-
_a.sent();
|
|
226
|
+
act(function () {
|
|
227
|
+
fireEvent.mouseUp(dragIndicator);
|
|
228
|
+
});
|
|
232
229
|
unmockTableSizing();
|
|
233
230
|
return [2 /*return*/];
|
|
234
231
|
}
|
|
@@ -142,7 +142,7 @@ var setUp = function (props) {
|
|
|
142
142
|
return __assign(__assign({}, (0, react_2.render)(react_1.default.createElement(BasicTable_1.BasicTable, __assign({}, props)))), { user: user });
|
|
143
143
|
};
|
|
144
144
|
describe('basic table tests', function () {
|
|
145
|
-
|
|
145
|
+
beforeEach(function () {
|
|
146
146
|
jest.clearAllMocks();
|
|
147
147
|
});
|
|
148
148
|
it('should not render Table when columnsData is empty array', function () {
|
|
@@ -212,9 +212,11 @@ describe('basic table tests', function () {
|
|
|
212
212
|
expect((0, react_2.within)(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
|
|
213
213
|
expect((0, react_2.within)(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).toBeInTheDocument();
|
|
214
214
|
dragIndicator = (0, react_2.within)(getCellByIndexes(1, 0)).getByRole('button', { name: 'drag el' });
|
|
215
|
+
(0, react_2.act)(function () {
|
|
216
|
+
react_2.fireEvent.mouseDown(dragIndicator, mouse[0]);
|
|
217
|
+
});
|
|
215
218
|
return [4 /*yield*/, (0, react_2.act)(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
219
|
return __generator(this, function (_a) {
|
|
217
|
-
react_2.fireEvent.mouseDown(dragIndicator, mouse[0]);
|
|
218
220
|
react_2.fireEvent.mouseMove(dragIndicator, mouse[1]);
|
|
219
221
|
return [2 /*return*/];
|
|
220
222
|
});
|
|
@@ -226,14 +228,9 @@ describe('basic table tests', function () {
|
|
|
226
228
|
expect((0, react_2.within)(getCellByIndexes(0, 1)).queryByText('row 1 value 3')).not.toBeInTheDocument();
|
|
227
229
|
expect((0, react_2.within)(getCellByIndexes(1, 1)).queryByText('row 2 value 1')).toBeInTheDocument();
|
|
228
230
|
expect((0, react_2.within)(getCellByIndexes(1, 1)).queryByText('row 2 value 2')).not.toBeInTheDocument();
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
return [2 /*return*/];
|
|
233
|
-
});
|
|
234
|
-
}); })];
|
|
235
|
-
case 4:
|
|
236
|
-
_a.sent();
|
|
231
|
+
(0, react_2.act)(function () {
|
|
232
|
+
react_2.fireEvent.mouseUp(dragIndicator);
|
|
233
|
+
});
|
|
237
234
|
unmockTableSizing();
|
|
238
235
|
return [2 /*return*/];
|
|
239
236
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2094",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.1932",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|
|
18
18
|
"d3-hierarchy": "^2.0.0",
|
|
19
|
-
"d3-scale": "^
|
|
19
|
+
"d3-scale": "^4.0.2",
|
|
20
20
|
"frontend-collective-react-dnd-scrollzone": "^1.0.2",
|
|
21
21
|
"graphology": "0.25.1",
|
|
22
22
|
"graphology-layout": "0.6.1",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"classnames": "^2.2.5",
|
|
50
50
|
"jss": "^10.10.0",
|
|
51
51
|
"moment": "^2.29.4",
|
|
52
|
-
"nanoid": "^3.3.
|
|
52
|
+
"nanoid": "^3.3.8",
|
|
53
53
|
"prop-types": "^15.6.2",
|
|
54
54
|
"ramda": "^0.28.0",
|
|
55
55
|
"react": "^17.0.2",
|
|
56
|
-
"react-components": "bitbucket:reltio-ondemand/react-components#v4.2.
|
|
56
|
+
"react-components": "bitbucket:reltio-ondemand/react-components#v4.2.7",
|
|
57
57
|
"react-resize-detector": "^9.1.1",
|
|
58
58
|
"ui-i18n": "bitbucket:reltio-ondemand/ui-i18n#v1.4.0"
|
|
59
59
|
},
|