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
There is always a chance the admin will change or more than one is needed. The ability to create admins is needed.
The first admin will be given a code that can be input to allow the creation of admins.
This code will be able to be modified at a later time
Refer to use case: #28 for creator code verification
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
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