Fixed a testing method (cypress) that was failing for large datasets, #3734 (#3735)

This commit is contained in:
Florian Giroud 2021-03-17 11:26:35 +01:00 committed by GitHub
parent 4009ddae81
commit 2cd7e903bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,9 +85,8 @@ Cypress.Commands.add('loadProject', (fixture, projectName, tagName) => {
let postData;
if (tagName == undefined) {
postData =
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="' +
fixture +
'"\r\nContent-Type: "text/csv"\r\n\r\n' +
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="test.csv"' +
'\r\nContent-Type: "text/csv"\r\n\r\n' +
content +
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
openRefineProjectName +
@ -96,9 +95,8 @@ Cypress.Commands.add('loadProject', (fixture, projectName, tagName) => {
'\r\n------BOUNDARY--';
} else {
postData =
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="' +
fixture +
'"\r\nContent-Type: "text/csv"\r\n\r\n' +
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="test.csv"' +
'\r\nContent-Type: "text/csv"\r\n\r\n' +
content +
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
openRefineProjectName +