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 admin I need to be able to modify the creator code so that I can change the code as needed for a more secure website #19

Open mmanning95 opened 1 week ago

mmanning95 commented 1 week ago

As a admin I need to be able to modify the creator code So that I can enhance the website's security as needed.

Details and Assumptions

Acceptance Criteria


Scenario: Successful code modification
Given I am a logged-in admin user
And I click the "Creator's Code" button
And I am redirected to the creator code page
And I see the current code displayed
When I enter a new code that is at least  characters long
And I submit the change
Then the new code is successfully submitted
And I receive a message saying "Code has been updated"

Scenario: Unsuccessful code modification due to short code
Given I am a logged-in admin user
When I enter a new code that is less than 5 characters long
And I submit the change
Then I see an error message saying "Code must be at least 5 characters long"
And the change is not applied

Scenario: Not logged in as admin
Given I am not logged in as an admin
When I attempt to access the creator code modification page
Then I will be redirected to the login page
And I will see a message saying "You must be an admin to access this page"