Title:
As an authenticated admin, I want to update a doctor's specialties and contact information, so that patients can access up-to-date information about doctors.
Feature (Gherkin)
Feature: Update Doctor Information
Background:
Given I am an authenticated admin
And I am on the admin dashboard
And I have located a doctor
And I click the "Update" button
And the "Update Doctor" form opens
Scenario: View update doctor form
Then the form should be prefilled with the doctor's current information
And the name field should be disabled
And the password field should not be displayed
Scenario: Successfully update doctor information
When I modify the doctor's specialties or contact information
And I click the "Confirm" button
Then the doctor's specialties and contact information should be updated
And I should be redirected to the admin dashboard
And I should see the selected doctor with the updated information
Scenario: Update doctor information with a duplicate email
When I enter a duplicate email
And I click the "Confirm" button
Then I should remain on the "Update Doctor" form
And I should see the corresponding validation error message
Scenario: Update doctor information with invalid data
When I enter invalid information
And I click the "Confirm" button
Then I should remain on the "Update Doctor" form
And I should see the corresponding validation error messages
Acceptance Criteria:
- When viewing the Update Doctor form
- The form should be prefilled with the doctor's current information.
- The name field should be disabled.
- The password field should not be displayed.
- After successfully updating a doctor
- The changes made must be persisted in the database.
- The "Update Doctor" form should close automatically
- The user should be redirected to the admin dashboard.
- The recently updated doctor should display the new information in its card
- When trying to update the information of a doctor with a duplicate email
- The doctor's information in the database must not change.
- I should remain on the "Update Doctor" form
- I should see the proper error message
- When trying to update the information of a doctor with invalid data
- The doctor's information in the database must not change.
- I should remain on the "Update Doctor" form
- I should see the proper error messages
Priority: Low
Story Points: 3
Notes:
- The email address must be unique among doctors.
- Validations must be enforced at the backend
Title:
As an authenticated admin, I want to update a doctor's specialties and contact information, so that patients can access up-to-date information about doctors.
Feature (Gherkin)
Acceptance Criteria:
Priority: Low
Story Points: 3
Notes: