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 4c0db3f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ 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,
body: formData,
});
}

Expand Down

0 comments on commit 4c0db3f

Please sign in to comment.