Commit 8ff3c1e0 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

old test removed

parent 961a437d
Pipeline #40158 passed with stage
in 24 minutes and 46 seconds
This diff is collapsed.
......@@ -44,43 +44,6 @@ describe('DrugDbOverlay', function () {
assert.equal(elements.length, 1);
});
});
it("check if info window updated", function () {
helper.setUrl("http://test-page/?id=drug_target_sample");
var map, searchDb, alias, marker, infoWindow;
var ie = new IdentifiedElement({
id: 436152,
modelId: 20637,
type: 'ALIAS'
});
return ServerConnector.getProject("drug_target_sample").then(function (project) {
map = helper.createCustomMap(project);
searchDb = helper.createDrugDbOverlay(map);
return map.getModel().getByIdentifiedElement(ie);
}).then(function (result) {
alias = result;
marker = map.getMapCanvas().createMarker({icon: "empty.png", position: new Point(0, 0)});
return map.openInfoWindowForIdentifiedElement(ie, marker)
}).then(function (result) {
infoWindow = result;
assert.notOk(infoWindow.getContent().innerHTML.indexOf("NADH") >= 0);
return searchDb.searchByQuery("NADH");
}).then(function (drugs) {
assert.equal(drugs.length, 1);
assert.equal(searchDb.getQueries().length, 1);
return searchDb.getElementsByQuery(searchDb.getQueries()[0]);
}).then(function (elements) {
assert.ok(elements.length > 1);
return searchDb.getIdentifiedElements();
}).then(function (elements) {
assert.ok(infoWindow.getContent().innerHTML.indexOf("NADH") >= 0);
assert.equal(elements.length, 1);
}).finally(function(){
return map.destroy();
});
});
});
it("searchNamesByTarget", function () {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment