From a77674fdeaaaa2a9c1d2f3b269f09aee7b05deea Mon Sep 17 00:00:00 2001 From: Wei Qing <48304907+weiquu@users.noreply.github.com> Date: Sun, 25 Feb 2024 19:37:39 +0900 Subject: [PATCH] fix failing component tests (#12837) --- .../it/ui/webapi/FeedbackSessionOpeningRemindersActionIT.java | 4 ++-- .../it/ui/webapi/GetSessionResponseStatsActionIT.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/it/java/teammates/it/ui/webapi/FeedbackSessionOpeningRemindersActionIT.java b/src/it/java/teammates/it/ui/webapi/FeedbackSessionOpeningRemindersActionIT.java index 74c3cae648c..cbaba138d06 100644 --- a/src/it/java/teammates/it/ui/webapi/FeedbackSessionOpeningRemindersActionIT.java +++ b/src/it/java/teammates/it/ui/webapi/FeedbackSessionOpeningRemindersActionIT.java @@ -109,9 +109,9 @@ private void testExecute_typicalSuccess1() { // # of email to send = // # emails sent to instructorsToNotify (ie co-owner), 1 + - // # emails sent to students, 4 + + // # emails sent to students, 5 + // # emails sent to instructors, 3 (including instructorsToNotify) - verifySpecifiedTasksAdded(Const.TaskQueue.SEND_EMAIL_QUEUE_NAME, 8); + verifySpecifiedTasksAdded(Const.TaskQueue.SEND_EMAIL_QUEUE_NAME, 9); List tasksAdded = mockTaskQueuer.getTasksAdded(); for (TaskWrapper task : tasksAdded) { diff --git a/src/it/java/teammates/it/ui/webapi/GetSessionResponseStatsActionIT.java b/src/it/java/teammates/it/ui/webapi/GetSessionResponseStatsActionIT.java index f7a2bf24082..837c5d75c08 100644 --- a/src/it/java/teammates/it/ui/webapi/GetSessionResponseStatsActionIT.java +++ b/src/it/java/teammates/it/ui/webapi/GetSessionResponseStatsActionIT.java @@ -53,7 +53,7 @@ protected void testExecute() { JsonResult r = getJsonResult(a); FeedbackSessionStatsData output = (FeedbackSessionStatsData) r.getOutput(); - assertEquals(7, output.getExpectedTotal()); + assertEquals(8, output.getExpectedTotal()); assertEquals(3, output.getSubmittedTotal()); ______TS("fail: instructor accesses stats of non-existent feedback session");