diff --git a/src/e2e/java/teammates/e2e/cases/InstructorHomePageE2ETest.java b/src/e2e/java/teammates/e2e/cases/InstructorHomePageE2ETest.java index e0f7a5c2087..f22da51cf4f 100644 --- a/src/e2e/java/teammates/e2e/cases/InstructorHomePageE2ETest.java +++ b/src/e2e/java/teammates/e2e/cases/InstructorHomePageE2ETest.java @@ -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"); diff --git a/src/e2e/resources/data/AutomatedSessionRemindersE2ETest_SqlEntities.json b/src/e2e/resources/data/AutomatedSessionRemindersE2ETest_SqlEntities.json index df2a7c52fb5..67a6647af57 100644 --- a/src/e2e/resources/data/AutomatedSessionRemindersE2ETest_SqlEntities.json +++ b/src/e2e/resources/data/AutomatedSessionRemindersE2ETest_SqlEntities.json @@ -4,7 +4,7 @@ "id": "00000000-0000-4000-8000-000000000001", "googleId": "tm.e2e.AutSesRem.instructor", "name": "Test Ins for Aut Sessions Reminder", - "email": "AutSesRem.instructor@gmail.tmt", + "email": "AutSesRem.instructor@gmail.tmt" } } } diff --git a/src/e2e/resources/data/InstructorHomePageE2ETest.json b/src/e2e/resources/data/InstructorHomePageE2ETest.json index 90b412e704c..a940c93061d 100644 --- a/src/e2e/resources/data/InstructorHomePageE2ETest.json +++ b/src/e2e/resources/data/InstructorHomePageE2ETest.json @@ -1,12 +1,4 @@ { - "accounts": { - "IHome.instr": { - "googleId": "tm.e2e.IHome.instructor.tmms", - "name": "Teammates Test", - "email": "IHome.instructor.tmms@gmail.tmt", - "readNotifications": {} - } - }, "courses": { "IHome.CS2104": { "createdAt": "2012-04-01T23:58:00Z", @@ -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": "
Deprecation happens in three minutes
", - "shown": false - } - } + "feedbackResponseComments": {} } diff --git a/src/e2e/resources/data/InstructorHomePageE2ETest_SqlEntities.json b/src/e2e/resources/data/InstructorHomePageE2ETest_SqlEntities.json new file mode 100644 index 00000000000..e41edf1ad0d --- /dev/null +++ b/src/e2e/resources/data/InstructorHomePageE2ETest_SqlEntities.json @@ -0,0 +1,22 @@ +{ + "accounts": { + "IHome.instr": { + "id": "00000000-0000-4000-8000-000000000001", + "googleId": "tm.e2e.IHome.instructor.tmms", + "name": "Teammates Test", + "email": "IHome.instructor.tmms@gmail.tmt" + } + }, + "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": "Deprecation happens in three minutes
", + "shown": false + } + } +}