This commit is contained in:
parent
4009ddae81
commit
2cd7e903bc
@ -85,9 +85,8 @@ Cypress.Commands.add('loadProject', (fixture, projectName, tagName) => {
|
|||||||
let postData;
|
let postData;
|
||||||
if (tagName == undefined) {
|
if (tagName == undefined) {
|
||||||
postData =
|
postData =
|
||||||
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="' +
|
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="test.csv"' +
|
||||||
fixture +
|
'\r\nContent-Type: "text/csv"\r\n\r\n' +
|
||||||
'"\r\nContent-Type: "text/csv"\r\n\r\n' +
|
|
||||||
content +
|
content +
|
||||||
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
|
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
|
||||||
openRefineProjectName +
|
openRefineProjectName +
|
||||||
@ -96,9 +95,8 @@ Cypress.Commands.add('loadProject', (fixture, projectName, tagName) => {
|
|||||||
'\r\n------BOUNDARY--';
|
'\r\n------BOUNDARY--';
|
||||||
} else {
|
} else {
|
||||||
postData =
|
postData =
|
||||||
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="' +
|
'------BOUNDARY\r\nContent-Disposition: form-data; name="project-file"; filename="test.csv"' +
|
||||||
fixture +
|
'\r\nContent-Type: "text/csv"\r\n\r\n' +
|
||||||
'"\r\nContent-Type: "text/csv"\r\n\r\n' +
|
|
||||||
content +
|
content +
|
||||||
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
|
'\r\n------BOUNDARY\r\nContent-Disposition: form-data; name="project-name"\r\n\r\n' +
|
||||||
openRefineProjectName +
|
openRefineProjectName +
|
||||||
|
Loading…
Reference in New Issue
Block a user