Large manual tests corruption fix
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
package admin
|
||||
|
||||
// Package admin contains tests for admin dashboard "today" endpoints.
|
||||
//
|
||||
// Test Coverage:
|
||||
@@ -11,12 +13,7 @@
|
||||
// - AcknowledgeNotification: POST /api/admin/notifications/{id}/ack - Acknowledge (WIP - skipped)
|
||||
//
|
||||
// Authentication: All endpoints require admin role (403 for non-admins).
|
||||
// WIP: Notification tests are skipped pending handler implementation.
|
||||
package admin
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
package admin
|
||||
// WIP: Notification tests are skipped pending handler implementation.package admin
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -32,6 +29,7 @@ import (
|
||||
|
||||
// TestAdminToday_CurrentNext verifies that an admin can retrieve the currently
|
||||
// in-progress booking and the next upcoming booking for the dashboard.
|
||||
func TestAdminToday_CurrentNext(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
|
||||
@@ -107,6 +105,7 @@ import (
|
||||
|
||||
// TestAdminToday_Appointments tests that an admin can get a list of all
|
||||
// bookings scheduled for today with their details.
|
||||
func TestAdminToday_Appointments(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
|
||||
@@ -182,6 +181,7 @@ import (
|
||||
|
||||
// TestAdminToday_PendingApprovals verifies that an admin can see all pending
|
||||
// bookings that require approval/confirmation.
|
||||
func TestAdminToday_PendingApprovals(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
|
||||
@@ -257,16 +257,19 @@ import (
|
||||
|
||||
// TestAdminNotifications_List is skipped (WIP) - tests that an admin
|
||||
// can list all their notifications.
|
||||
func TestAdminNotifications_List(t *testing.T) {
|
||||
t.Skip("Skipping - WIP handler")
|
||||
}
|
||||
|
||||
// TestAdminNotifications_Acknowledge is skipped (WIP) - tests that an
|
||||
// admin can acknowledge a notification.
|
||||
func TestAdminNotifications_Acknowledge(t *testing.T) {
|
||||
t.Skip("Skipping - WIP handler")
|
||||
}
|
||||
|
||||
// TestAdminToday_NonAdmin verifies that non-admin users receive HTTP 403
|
||||
// when accessing today's dashboard endpoints.
|
||||
func TestAdminToday_NonAdmin(t *testing.T) {
|
||||
cleanup := setupTestDB(t)
|
||||
defer cleanup()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user