fix(ui): remove unsupported dashboard metrics
This commit is contained in:
+4
-3
@@ -49,7 +49,8 @@ class DashboardTemplateWebTest {
|
||||
.andExpect(status().isOk())
|
||||
.andExpect(content().string(containsString("Good morning, Minh Mentor")))
|
||||
.andExpect(content().string(containsString("Active owned Projects</div><div class=\"metric-value\">1")))
|
||||
.andExpect(content().string(containsString("Pending decisions</div><div class=\"metric-value\">2")))
|
||||
.andExpect(content().string(containsString("Blocked Tasks</div><div class=\"metric-value\">1")))
|
||||
.andExpect(content().string(not(containsString("Pending decisions"))))
|
||||
.andExpect(content().string(containsString("Create Project")))
|
||||
.andExpect(content().string(not(containsString("Create account"))))
|
||||
.andExpect(content().string(not(containsString("Check in"))));
|
||||
@@ -65,6 +66,7 @@ class DashboardTemplateWebTest {
|
||||
.andExpect(content().string(containsString("My real task")))
|
||||
.andExpect(content().string(containsString("18/08/2026")))
|
||||
.andExpect(content().string(containsString("Check out")))
|
||||
.andExpect(content().string(not(containsString("Unread notifications"))))
|
||||
.andExpect(content().string(not(containsString("Create Project"))))
|
||||
.andExpect(content().string(not(containsString("Create account"))));
|
||||
}
|
||||
@@ -80,7 +82,7 @@ class DashboardTemplateWebTest {
|
||||
|
||||
@GetMapping("/template-contract/dashboard/mentor")
|
||||
String mentor(Model model) {
|
||||
model.addAttribute("dashboard", new DashboardView.Mentor("Minh Mentor", 1, 2, 1, 2));
|
||||
model.addAttribute("dashboard", new DashboardView.Mentor("Minh Mentor", 1, 2, 1));
|
||||
return "dashboard/mentor";
|
||||
}
|
||||
|
||||
@@ -91,7 +93,6 @@ class DashboardTemplateWebTest {
|
||||
DashboardView.AttendanceState.CHECKED_IN,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
List.of(new DashboardView.AssignedTask(
|
||||
"My real task", "Intern Portal", "IN_PROGRESS", LocalDate.of(2026, 8, 18)))));
|
||||
return "dashboard/intern";
|
||||
|
||||
Reference in New Issue
Block a user