diff --git a/cypress/e2e/assignment/assignmentTrainer.cy.js b/cypress/e2e/assignment/assignmentTrainer.cy.js index 60f3fc75..5902ff3d 100644 --- a/cypress/e2e/assignment/assignmentTrainer.cy.js +++ b/cypress/e2e/assignment/assignmentTrainer.cy.js @@ -1,4 +1,4 @@ -import { TEST_STUDENT1_USER_ID } from "../../consts"; +import { TEST_TRAINER1_USER_ID } from "../../consts"; import { login } from "../helpers"; describe("assignmentTrainer.cy.js", () => { @@ -85,8 +85,8 @@ describe("assignmentTrainer.cy.js", () => { cy.wait(500); // load AssignmentCompletion from DB and check cy.loadAssignmentCompletion( - "assignment_user_id", - TEST_STUDENT1_USER_ID + "evaluation_user_id", + TEST_TRAINER1_USER_ID ).then((ac) => { expect(ac.completion_status).to.equal("EVALUATION_IN_PROGRESS"); expect(JSON.stringify(ac.completion_data)).to.include("Nicht so gut"); @@ -187,8 +187,8 @@ describe("assignmentTrainer.cy.js", () => { // load AssignmentCompletion from DB and check cy.loadAssignmentCompletion( - "assignment_user_id", - TEST_STUDENT1_USER_ID + "evaluation_user_id", + TEST_TRAINER1_USER_ID ).then((ac) => { expect(ac.completion_status).to.equal("EVALUATION_SUBMITTED"); expect(ac.evaluation_points).to.equal(17); @@ -237,8 +237,8 @@ describe("assignmentTrainer.cy.js", () => { // load AssignmentCompletion from DB and check cy.loadAssignmentCompletion( - "assignment_user_id", - TEST_STUDENT1_USER_ID + "evaluation_user_id", + TEST_TRAINER1_USER_ID ).then((ac) => { console.log(ac.completion_status); expect(ac.completion_status).to.equal("EVALUATION_IN_PROGRESS"); @@ -323,8 +323,8 @@ describe("assignmentTrainer.cy.js", () => { // load AssignmentCompletion from DB and check cy.loadAssignmentCompletion( - "assignment_user_id", - TEST_STUDENT1_USER_ID + "evaluation_user_id", + TEST_TRAINER1_USER_ID ).then((ac) => { expect(ac.completion_status).to.equal("EVALUATION_SUBMITTED"); expect(ac.evaluation_max_points).to.equal(0);