mmanning95 / ACME26WCV-Cpts421

Capstone project for Cpts 421 in conjunction with Whitman county's veteran service officer
0 stars 0 forks source link

As a User I need to be able to create admin accounts so that new admins can easily be added for moderating the hub #7

Open mmanning95 opened 1 week ago

mmanning95 commented 1 week ago

As a User I need to be able to create admin accounts So that new admins can easily be added for moderating the hub

Details and Assumptions

Acceptance Criteria


Scenario: Successful admin account creation
Given I am a user that wants to create an admin account
When I click the "Create admin account" button 
And I verify the creators code
And I am redirected to the Create Admin account page
When I input my name, email, password, matching password, office location, office phone number, and office hours
And I press the "submit account" button
Then I am redirected to the profile overview page
And I am shown a message that the account has been created successfully

Scenario: Unsuccessful admin account creation due to incorrect creator code
Given I am a user that wants to create an admin account
And I click the "create admin account" button 
And I am asked for the account creator code
When I type an incorrect creator code
Then I will see a message indicating that the code is incorrect
And I will remain on the creator code entry page

Scenario: Unsuccessful admin account creation due to non-matching passwords
Given I am a user that wants to create an admin account
And I click the "create admin account" button 
And I verify the creators code
And I am redirected to the Create Admin account page
When I input all relevant information but my passwords do not match
And I press the "submit account" button
Then I will see a message indicating that the passwords do not match
And I will remain on the Create Admin  account page