Skip to content

Commit

Permalink
[#12048] fix InstructorHomePageE2ETest (#12839)
Browse files Browse the repository at this point in the history
* fix InstructorHomePageE2ETest

* fix automated session reminders json
  • Loading branch information
cedricongjh authored Feb 26, 2024
1 parent 203ec24 commit 5e2e2a6
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ protected void prepareTestData() {
removeAndRestoreDataBundle(testData);
putDocuments(testData);

sqlTestData =
removeAndRestoreSqlDataBundle(
loadSqlDataBundle("/InstructorHomePageE2ETest_SqlEntities.json"));

instructor = testData.instructors.get("IHome.instr.CS2104");
course = testData.courses.get("IHome.CS2104");
otherCourse = testData.courses.get("IHome.CS1101");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "00000000-0000-4000-8000-000000000001",
"googleId": "tm.e2e.AutSesRem.instructor",
"name": "Test Ins for Aut Sessions Reminder",
"email": "[email protected]",
"email": "[email protected]"
}
}
}
24 changes: 1 addition & 23 deletions src/e2e/resources/data/InstructorHomePageE2ETest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"accounts": {
"IHome.instr": {
"googleId": "tm.e2e.IHome.instructor.tmms",
"name": "Teammates Test",
"email": "[email protected]",
"readNotifications": {}
}
},
"courses": {
"IHome.CS2104": {
"createdAt": "2012-04-01T23:58:00Z",
Expand Down Expand Up @@ -324,19 +316,5 @@
}
}
},
"feedbackResponseComments": {},
"notifications": {
"notification1": {
"notificationId": "notification1",
"startTime": "2011-01-01T00:00:00Z",
"endTime": "2099-01-01T00:00:00Z",
"createdAt": "2011-01-01T00:00:00Z",
"updatedAt": "2011-01-01T00:00:00Z",
"style": "DANGER",
"targetUser": "GENERAL",
"title": "A deprecation note",
"message": "<p>Deprecation happens in three minutes</p>",
"shown": false
}
}
"feedbackResponseComments": {}
}
22 changes: 22 additions & 0 deletions src/e2e/resources/data/InstructorHomePageE2ETest_SqlEntities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"accounts": {
"IHome.instr": {
"id": "00000000-0000-4000-8000-000000000001",
"googleId": "tm.e2e.IHome.instructor.tmms",
"name": "Teammates Test",
"email": "[email protected]"
}
},
"notifications": {
"notification1": {
"id": "00000000-0000-4000-8000-000000000002",
"startTime": "2011-01-01T00:00:00Z",
"endTime": "2099-01-01T00:00:00Z",
"style": "DANGER",
"targetUser": "GENERAL",
"title": "A deprecation note",
"message": "<p>Deprecation happens in three minutes</p>",
"shown": false
}
}
}

0 comments on commit 5e2e2a6

Please sign in to comment.