From 26cdd69a49116d55b34428a1e2993935d840f640 Mon Sep 17 00:00:00 2001 From: Flea Flicker Date: Tue, 26 May 2026 12:48:55 +0000 Subject: [PATCH] fix(GRO-1793): remove unused act import and add aria-label to date inputs QA review pointed out: - Lint error: 'act' imported but never used in test file - 6 test failures: date input lacked accessible label Co-Authored-By: Claude Opus 4.7 --- src/__tests__/Appointments.test.tsx | 2 +- src/portal/sections/Appointments.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/__tests__/Appointments.test.tsx b/src/__tests__/Appointments.test.tsx index d70f3d6..9ba746b 100644 --- a/src/__tests__/Appointments.test.tsx +++ b/src/__tests__/Appointments.test.tsx @@ -1,5 +1,5 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; -import { render, screen, fireEvent, waitFor, act } from "@testing-library/react"; +import { render, screen, fireEvent, waitFor } from "@testing-library/react"; import { parseTimeTo24Hour, isUpcoming, CustomerNotesSection, ConfirmationSection } from "../portal/sections/Appointments.tsx"; const UPCOMING_APPT = { diff --git a/src/portal/sections/Appointments.tsx b/src/portal/sections/Appointments.tsx index 593ca8a..13038c5 100644 --- a/src/portal/sections/Appointments.tsx +++ b/src/portal/sections/Appointments.tsx @@ -664,6 +664,7 @@ export function RescheduleFlow({

Pick a New Date & Time

setSelectedDate(e.target.value)} min={new Date().toISOString().split('T')[0]} @@ -1073,6 +1074,7 @@ function BookingFlow({ onClose, sessionId }: BookingFlowProps) {

Pick Date & Time

setSelectedDate(e.target.value)} min={new Date().toISOString().split('T')[0]}