@jbrowse/plugin-data-management 1.7.7 → 1.7.10
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.
- package/dist/AddConnectionWidget/components/AddConnectionWidget.test.js +25 -16
- package/dist/AddConnectionWidget/model.d.ts +1 -1
- package/dist/AddTrackWidget/index.test.js +1 -0
- package/dist/AddTrackWidget/model.js +1 -1
- package/dist/ucsc-trackhub/configSchema.d.ts +1 -1
- package/dist/ucsc-trackhub/ucscAssemblies.d.ts +1 -1
- package/package.json +2 -2
- package/src/AddConnectionWidget/components/AddConnectionWidget.test.js +2 -1
- package/src/AddTrackWidget/index.test.jsx +1 -0
- package/src/AddTrackWidget/model.ts +1 -1
|
@@ -151,7 +151,7 @@ describe('<AddConnectionWidget />', function () {
|
|
|
151
151
|
}, _callee);
|
|
152
152
|
})));
|
|
153
153
|
it('can handle a custom JBrowse 1 data directory URL', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
154
|
-
var mockFetch, _render3, findByTestId, getAllByRole,
|
|
154
|
+
var mockFetch, _render3, findByTestId, getAllByRole, findByText, findByPlaceholderText, findByDisplayValue;
|
|
155
155
|
|
|
156
156
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
157
157
|
while (1) {
|
|
@@ -175,7 +175,7 @@ describe('<AddConnectionWidget />', function () {
|
|
|
175
175
|
jest.spyOn(global, 'fetch').mockImplementation(mockFetch);
|
|
176
176
|
_render3 = (0, _react.render)( /*#__PURE__*/_react2.default.createElement(_AddConnectionWidget.default, {
|
|
177
177
|
model: model
|
|
178
|
-
})), findByTestId = _render3.findByTestId, getAllByRole = _render3.getAllByRole,
|
|
178
|
+
})), findByTestId = _render3.findByTestId, getAllByRole = _render3.getAllByRole, findByText = _render3.findByText, findByPlaceholderText = _render3.findByPlaceholderText, findByDisplayValue = _render3.findByDisplayValue;
|
|
179
179
|
expect(session.connections.length).toBe(0);
|
|
180
180
|
|
|
181
181
|
_react.fireEvent.mouseDown(getAllByRole('button')[0]);
|
|
@@ -228,39 +228,48 @@ describe('<AddConnectionWidget />', function () {
|
|
|
228
228
|
|
|
229
229
|
_context2.t10 = _react.fireEvent;
|
|
230
230
|
_context2.next = 30;
|
|
231
|
-
return
|
|
231
|
+
return findByText('Add item');
|
|
232
232
|
|
|
233
233
|
case 30:
|
|
234
234
|
_context2.t11 = _context2.sent;
|
|
235
|
-
|
|
235
|
+
|
|
236
|
+
_context2.t10.click.call(_context2.t10, _context2.t11);
|
|
237
|
+
|
|
238
|
+
_context2.t12 = _react.fireEvent;
|
|
239
|
+
_context2.next = 35;
|
|
240
|
+
return findByPlaceholderText('add new');
|
|
241
|
+
|
|
242
|
+
case 35:
|
|
243
|
+
_context2.t13 = _context2.sent;
|
|
244
|
+
_context2.t14 = {
|
|
236
245
|
target: {
|
|
237
246
|
value: 'volMyt1'
|
|
238
247
|
}
|
|
239
248
|
};
|
|
240
249
|
|
|
241
|
-
_context2.
|
|
242
|
-
|
|
243
|
-
_context2.t13 = _react.fireEvent;
|
|
244
|
-
_context2.next = 36;
|
|
245
|
-
return findByTestId('stringArrayAdd-assemblyNames');
|
|
246
|
-
|
|
247
|
-
case 36:
|
|
248
|
-
_context2.t14 = _context2.sent;
|
|
249
|
-
|
|
250
|
-
_context2.t13.click.call(_context2.t13, _context2.t14);
|
|
250
|
+
_context2.t12.change.call(_context2.t12, _context2.t13, _context2.t14);
|
|
251
251
|
|
|
252
252
|
_context2.t15 = _react.fireEvent;
|
|
253
253
|
_context2.next = 41;
|
|
254
|
-
return findByTestId('
|
|
254
|
+
return findByTestId('stringArrayAdd-assemblyNames');
|
|
255
255
|
|
|
256
256
|
case 41:
|
|
257
257
|
_context2.t16 = _context2.sent;
|
|
258
258
|
|
|
259
259
|
_context2.t15.click.call(_context2.t15, _context2.t16);
|
|
260
260
|
|
|
261
|
+
_context2.t17 = _react.fireEvent;
|
|
262
|
+
_context2.next = 46;
|
|
263
|
+
return findByTestId('addConnectionNext');
|
|
264
|
+
|
|
265
|
+
case 46:
|
|
266
|
+
_context2.t18 = _context2.sent;
|
|
267
|
+
|
|
268
|
+
_context2.t17.click.call(_context2.t17, _context2.t18);
|
|
269
|
+
|
|
261
270
|
expect(session.sessionConnections.length).toBe(1);
|
|
262
271
|
|
|
263
|
-
case
|
|
272
|
+
case 49:
|
|
264
273
|
case "end":
|
|
265
274
|
return _context2.stop();
|
|
266
275
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("mobx-state-tree").IModelType<{
|
|
2
2
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
3
3
|
type: import("mobx-state-tree").ISimpleType<"AddConnectionWidget">;
|
|
4
4
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -133,6 +133,7 @@ describe('tests on an LGV type system with view.assemblyNames, using URL', funct
|
|
|
133
133
|
window.location = realLocation;
|
|
134
134
|
});
|
|
135
135
|
it('adds relative URL (BAM)', function () {
|
|
136
|
+
console.warn = jest.fn();
|
|
136
137
|
var _session = session,
|
|
137
138
|
widget = _session.widget;
|
|
138
139
|
widget.setTrackData({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare
|
|
1
|
+
declare const _default: string[];
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-data-management",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.10",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "02d8c1e88e5603ea5855faed4ccb814e28071b32"
|
|
58
58
|
}
|
|
@@ -104,8 +104,8 @@ type bigWig
|
|
|
104
104
|
const {
|
|
105
105
|
findByTestId,
|
|
106
106
|
getAllByRole,
|
|
107
|
-
findByPlaceholderText,
|
|
108
107
|
findByText,
|
|
108
|
+
findByPlaceholderText,
|
|
109
109
|
findByDisplayValue,
|
|
110
110
|
} = render(<AddConnectionWidget model={model} />)
|
|
111
111
|
expect(session.connections.length).toBe(0)
|
|
@@ -121,6 +121,7 @@ type bigWig
|
|
|
121
121
|
target: { value: 'http://test.com/jbrowse/data/' },
|
|
122
122
|
},
|
|
123
123
|
)
|
|
124
|
+
fireEvent.click(await findByText('Add item'))
|
|
124
125
|
fireEvent.change(await findByPlaceholderText('add new'), {
|
|
125
126
|
target: { value: 'volMyt1' },
|
|
126
127
|
})
|