diff --git a/src/__tests__/baselines/source-function-lines.json b/src/__tests__/baselines/source-function-lines.json index 595676ba3..1add8f02f 100644 --- a/src/__tests__/baselines/source-function-lines.json +++ b/src/__tests__/baselines/source-function-lines.json @@ -84,7 +84,7 @@ "components/cycle/log-day-sheet.tsx :: LogDaySheet": 760, "components/daily/today-hero.tsx :: TodayHero": 488, "components/dashboard/dashboard-header.tsx :: DashboardHeader": 215, - "components/dashboard/medication-intake-quick-add.tsx :: MedicationIntakeQuickAdd": 383, + "components/dashboard/medication-intake-quick-add.tsx :: MedicationIntakeQuickAdd": 384, "components/day/day-layer.tsx :: DayLayer": 358, "components/day/day-view.tsx :: DayView": 309, "components/documents/document-ai-section.tsx :: DocumentAiSection": 262, diff --git a/src/components/dashboard/medication-intake-quick-add.tsx b/src/components/dashboard/medication-intake-quick-add.tsx index 0c662b618..1b57d4fdf 100644 --- a/src/components/dashboard/medication-intake-quick-add.tsx +++ b/src/components/dashboard/medication-intake-quick-add.tsx @@ -451,6 +451,7 @@ export function MedicationIntakeQuickAdd({ id="medication-intake-dose" data-testid="medication-intake-quick-add-dose" value={dose} + data-seed={selectedMedication?.dose ?? ""} onChange={(e) => setDoseOverride(e.target.value)} maxLength={50} placeholder={ diff --git a/src/components/ui/__tests__/sheet-dirty-check.browser.test.tsx b/src/components/ui/__tests__/sheet-dirty-check.browser.test.tsx new file mode 100644 index 000000000..e786b6756 --- /dev/null +++ b/src/components/ui/__tests__/sheet-dirty-check.browser.test.tsx @@ -0,0 +1,81 @@ +/** + * The sheet's fallback dirty check on two real capture forms, rendered in + * Chromium: untouched, neither may ask "Discard?" when the sheet closes, and + * each reads as edited once something is changed. + * + * - The symptom form's intensity slider sits in a `