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 27, 2022
1 parent ad6d71f commit 071c53b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/test/cypress/integration/Logout.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { artemis } from '../support/ArtemisTesting';
import { authTokenKey } from '../support/constants';
import { Course } from '../../../main/webapp/app/entities/course.model';
import { ModelingExercise } from '../../../main/webapp/app/entities/modeling-exercise.model';
import { convertCourseAfterMultiPart } from '../support/requests/CourseManagementRequests';

const courseRequests = artemis.requests.courseManagement;
const users = artemis.users;
Expand All @@ -18,7 +19,7 @@ describe('Logout tests', () => {
cy.login(admin);

courseRequests.createCourse(true).then((response) => {
course = response.body;
course = convertCourseAfterMultiPart(response);
courseRequests.createModelingExercise({ course }).then((resp: Cypress.Response<ModelingExercise>) => {
modelingExercise = resp.body;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export class CourseManagementRequests {
course.instructorGroupName = Cypress.env('instructorGroupName');
}
const formData = new FormData();
Cypress.Blob;
formData.append('course', new File([JSON.stringify(course)], 'course', { type: 'application/json' }));
return cy.request({
url: BASE_API + 'courses',
Expand Down

0 comments on commit 071c53b

Please sign in to comment.