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
Only admins will have access to this code
The new code must be at least 5 case-sensitive characters long.
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"
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