From 2cd7e903bcd83a15857ca786067cf4c8db857ec7 Mon Sep 17 00:00:00 2001 From: Florian Giroud <6267288+fgiroud@users.noreply.github.com> Date: Wed, 17 Mar 2021 11:26:35 +0100 Subject: [PATCH] Fixed a testing method (cypress) that was failing for large datasets, #3734 (#3735) --- main/tests/cypress/cypress/support/openrefine_api.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/main/tests/cypress/cypress/support/openrefine_api.js b/main/tests/cypress/cypress/support/openrefine_api.js index 9f7b974df..c3fbe6b76 100644 --- a/main/tests/cypress/cypress/support/openrefine_api.js +++ b/main/tests/cypress/cypress/support/openrefine_api.js @@ -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 +