Skip to content

Commit

Permalink
fix cypress tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-christl committed Oct 13, 2022
1 parent 256df86 commit 512347d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,15 @@ export class CourseManagementRequests {
course.editorGroupName = Cypress.env('editorGroupName');
course.instructorGroupName = Cypress.env('instructorGroupName');
}
const formData = new FormData();
formData.append('course', Cypress.Blob.createBlob([JSON.stringify(course)], { type: 'application/json' }));
return cy.request({
url: BASE_API + 'courses',
method: POST,
body: course,
headers: {
'content-type': 'multipart/form-data',
},
body: formData,
});
}

Expand Down

0 comments on commit 512347d

Please sign in to comment.