# Edit Skills Test

## US-018-EditSkills-01

Test Case ID: US-018-EditSkills-01

Title: Admin Edit Skill Code

Description: Admin can edit a skill's code

Precondition:
- An admin should exist in the database with credentials `admin@example.com` and `password`

Test Steps:
- Log into the system with `admin@example.com` and `password`
- Navigate to the Manage Skills page
- Click on the first shift with code `BTO`
- Change the code to `ABC`
- Submit

Expected Output:
- The skill code should change to ABC in the Manage Skills page

## US-018-EditSkills-02

Test Case ID: US-018-EditSkills-02

Title: Admin Edit Skill Description

Description: Admin can edit skill description

Precondition:
- An admin should exist in the database with credentials `admin@example.com` and `password`

Test Steps:
- Log into the system with `admin@example.com` and `password`
- Navigate to the Manage Skills page
- Click on the first shift with code `BTO`
- Change the description to `Example description`
- Submit

Expected Output:
- The skill should have changed to `Example description`

## US-018-EditSkills-03

Test Case ID: US-018-EditSkills-03

Title: Admin Cannot Edit Skill Without Code

Description: An admin should not be able to edit a skill without a skill code

Precondition:
- An admin should exist in the database with credentials `admin@example.com` and `password`

Test Steps:
- Log into the system with `admin@example.com` and `password`
- Navigate to the Manage Skills page
- Click on the first shift with code `BTO`
- Clear the Skill Code field
- Click Submit

Expected Output:
- The skill code should not have changed to an empty string and instead retain the original skill code.