Commit 59836557 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

FileSaver sometimes caused problems asynchronously

parent 8579e132
......@@ -204,22 +204,6 @@ describe('ElementExportPanel', function () {
});
});
it('download file', function () {
var exportObject;
var project;
return ServerConnector.getProject().then(function (result) {
project = result;
exportObject = createExportPanel(project);
return exportObject.init();
}).then(function () {
$("input[name='ALL']", $(testDiv)).each(function (index, element) {
$(element).prop("checked", true);
});
var element = $("[name='downloadButton']", $(testDiv))[0];
return element.onclick();
});
});
describe('createResponseRow', function () {
it('description with new line', function () {
var exportObject = createExportPanel(helper.createProject());
......
......@@ -21,7 +21,7 @@ describe('NetworkExportPanel', function () {
});
}
it('download file', function () {
it('createResponseString', function () {
var exportObject;
var project;
return ServerConnector.getProject().then(function (result) {
......@@ -32,9 +32,8 @@ describe('NetworkExportPanel', function () {
$("input[name='ALL']", $(testDiv)).each(function (index, element) {
$(element).prop("checked", true);
});
var element = $("[name='downloadButton']", $(testDiv))[0];
assert.equal(0, logger.getWarnings().length);
return element.onclick();
return exportObject.createResponseString();
});
});
......
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