Kulcare Docs
Test plansClinic app

Test Plan: Clinic App - Availability

Module: Clinic App - Availability & Online Booking URL: https://practice-stg-new.kulcare.com/cms/settings/availability Status: ✅ Complete (Tested 2026-06-11)


Test Data Requirements

TypeDataPurpose
Doctor AActive, can add schedulesTest CRUD
Doctor BActive, has existing schedulesTest view/edit
Doctor CNo availability setTest "No booking" scenario

Test Cases

Availability Settings - Admin Side ✅

#Test CasePriorityStepsExpectedResult
1Select DoctorP0Choose from dropdownShows schedules✅ Pass
2Add Schedule - Single DayP0Select 1 day → SaveSchedule created✅ Pass
3Add Schedule - Multiple DaysP0Select 3 days → SaveSchedules created✅ Pass
4Add Schedule - All DaysP0Select all days → SaveSchedules created✅ Pass
5View Current SchedulesP0Select doctorShows schedules✅ Pass
6Edit ScheduleP0Edit time → SaveSchedule updated✅ Pass
7Delete ScheduleP0Delete → ConfirmSchedule removed✅ Pass
8No Days SelectedP0Click Save without daysError shown✅ Pass
9No Start TimeP0Leave start empty → SaveError shown✅ Pass
10No End TimeP0Leave end empty → SaveError shown✅ Pass
11Start Time = End TimeP0Enter same times → SaveError shown✅ Pass
12Start Time > End TimeP0Enter start > end → SaveError shown✅ Pass
13Overlapping Time SlotsP0Create overlapping → SaveError shown✅ Pass
14Adjacent Time SlotsP1Create adjacent → SaveWorks✅ Pass
15Edit Different ScheduleP1Edit another scheduleOnly that updated✅ Pass
16Delete Confirmation - CancelP1Delete → CancelNot deleted✅ Pass
17Delete Confirmation - ConfirmP0Delete → ConfirmDeleted✅ Pass
18Timezone DisplayP1View timesCorrect timezone✅ Pass

Online Booking Settings - Admin Side

#Test CasePriorityStepsExpectedResult
19Enable Online BookingP0Toggle ON → SaveBooking enabled✅ Pass
20Disable Online BookingP0Toggle OFF → SaveBooking disabled✅ Pass
21View Doctor FeesP0Go to fees pageShows all doctors✅ Pass
22Block Time SlotP0Block a slot → SaveSlot blocked✅ Pass
23Block Entire DayP0Block day → SaveDay blocked✅ Pass
24View Blocked SlotsP1Go to blockedShows blocked✅ Pass
25Unblock Time SlotP0Unblock → SaveSlot available✅ Pass
26Set Slot DurationP0Set 15/30/60 minDuration saved✅ Pass
27Set Consultation FeeP0Enter fee → SaveFee saved❌ FAIL
28Update Consultation FeeP0Edit fee → SaveFee updated❌ FAIL
29Per-Doctor Slot DurationP1Set different duration per doctor⚠️ Missing — slot_duration column exists on practitioner_schedules (default 15) and practitioner_roles.default_slot_duration (default 15) but no UI to configure per-doctor slot duration❌ Missing Feature

Online Booking - Doctor Side ✅

#Test CasePriorityStepsExpectedResult
29Set Own AvailabilityP0Add schedule → SaveSchedule created✅ Pass
30View Own SchedulesP0Go to availabilityShows own only✅ Pass
31Edit Own ScheduleP0Edit → SaveChanges saved✅ Pass

Availability & Online Booking Integration ✅

#Test CasePriorityStepsExpectedResult
32No Schedule = No BookingP0No schedule setBooking not available✅ Pass
33Schedule = Booking AvailableP0Schedule setSlots shown✅ Pass
34Blocked Slot = No BookingP0Slot blockedNot shown in booking✅ Pass
35Fee Required for BookingP1No fee setHandles gracefully✅ Pass

Bugs Found

Bug #DescriptionSeverityStatus
27Set consultation fee (PATCH API)🟡 HighOpen
28Set telemedicine fees (PATCH API)🟡 HighOpen
29Doctor can set other doctor's schedule🔴 CriticalOpen

Missing Features / Gaps

#DescriptionStatus
MF-01Per-doctor slot duration not configurable in UI — practitioner_schedules.slot_duration and practitioner_roles.default_slot_duration exist in DB (default 15 min). Both AvailabilityService and the booking modal read these values. But the availability settings page at /cms/settings/practiceSettings/availability has no UI to change them. All doctors use 15-min slots with no override.Missing UI

Confirmed Working Features

FeatureStatus
Availability Schedule CRUD✅ Works
Overlap Detection✅ Works
Delete Confirmation✅ Works
Online Booking Toggle✅ Works
Unavailability Settings✅ Works
Doctor Own Availability✅ Works
Timezone Display✅ Works
Integration with Booking✅ Works

Test Execution Checklist

  • TC-1 to TC-35

Test Plan Status: ✅ Complete Tested: 2026-06-11 Session File: ../test-reports/sessions/06-availability-booking.md

On this page