Skip to content

Mark/Unmark Available Time Slots As Doctor #22

Description

@maikelsalazar

Mark/Unmark available time slots:
As an authenticated doctor, I want to mark my available time slots, so that patients can be informed about my availability.

Feature (Gherkin)

Feature: Mark/Unmark available time slots

Background:
  Given I am an authenticated doctor
  And I am on the doctor dashboard
  And I click on the "Mark Availability" button
  And the "Mark Availability" form opens

Scenario: View mark availability form
  Then I see the list of available time slots predefined by the system
  And my previously saved available time slots are marked automatically
  And I see the "Confirm" button
  And I see the "Cancel" button

Scenario: Successfully updating available time slots
  When I mark or unmark available time slots from the list
  And I click on the "Confirm" button
  Then only the marked available time slots are saved
  And the unmarked available time slots are removed
  And I should see an "Availability updated" message
  And the form should close automatically
  And I should remain on my doctor's dashboard

Scenario: Cancel to update available time slots
  When I click on the "Cancel" button
  Then my available time slots do not change
  And the form should close automatically
  And I should remain on my doctor's dashboard

Acceptance Criteria:

  1. The Mark Availability form should display:
  • The list of available time slots predefined by the system
  • My previously saved available time slots are marked automatically if any
  • Confirm button
  • Cancel Button
  1. After successfully updating available time slots:
  • Only the marked available time slots are saved
  • The unmarked available time slots are removed
  • An "Availability updated" confirmation message should be displayed
  • The form should close automatically
  • The user should remain on the doctor's dashboard
  1. Cancel to update available time slots:
  • My previously saved available time slots remain with no modifications
  • The form should close automatically
  • The user should remain on the doctor's dashboard

Priority: Medium
Story Points: 3
Notes:

  • A doctor may leave all available time slots unmarked, indicating that the doctor is unavailable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions