Skip to content

Commit

Permalink
update team
Browse files Browse the repository at this point in the history
  • Loading branch information
weiquu committed Apr 20, 2024
1 parent a15c732 commit 445b36c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import teammates.e2e.pageobjects.InstructorCourseStudentDetailsEditPageSql;
import teammates.e2e.util.TestProperties;
import teammates.storage.sqlentity.Course;
import teammates.storage.sqlentity.Section;
import teammates.storage.sqlentity.Student;
import teammates.storage.sqlentity.Team;

Expand Down Expand Up @@ -43,10 +42,9 @@ public void testAll() {
editPage.verifyStudentDetails(student);

______TS("edit student details");
Section editedSection = new Section(student.getCourse(), "edited section");
Team editedTeam = new Team(editedSection, "edited team");
Team otherTeam = testData.teams.get("tm.e2e.ICSDetEdit.CS2104-SectionB-Team100");
student.setName("edited name");
student.setTeam(editedTeam);
student.setTeam(otherTeam);
student.setComments("edited comment");
editPage.editStudentDetails(student);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
"id": "tm.e2e.ICSDetEdit.CS2104"
},
"name": "Section A"
},
"tm.e2e.ICSDetEdit.CS2104-SectionB": {
"id": "00000000-0000-4000-8000-000000000202",
"course": {
"id": "tm.e2e.ICSDetEdit.CS2104"
},
"name": "Section B"
}
},
"teams": {
Expand All @@ -32,6 +39,13 @@
"id": "00000000-0000-4000-8000-000000000201"
},
"name": "Team 1"
},
"tm.e2e.ICSDetEdit.CS2104-SectionB-Team100": {
"id": "00000000-0000-4000-8000-000000000302",
"section": {
"id": "00000000-0000-4000-8000-000000000202"
},
"name": "Team 100"
}
},
"deadlineExtensions": {},
Expand Down Expand Up @@ -101,4 +115,3 @@
"notifications": {},
"readNotifications": {}
}

0 comments on commit 445b36c

Please sign in to comment.