# Quick Test: Set Default Status

# 🎯 Quick Test: Set Default Status

Follow these steps to verify the "Set as Default" functionality works correctly.

### Step 1: Navigate to Custom Task Status Manager

1. Login to the application as a coordinator or admin
2. Navigate to any project
3. Click on "Settings" in the sidebar
4. Go to the "Tasks" tab
5. Scroll to the "Custom Task Statuses" section

### Step 2: Create Test Statuses (if needed)

1. If you don't have at least 2 custom statuses, click "Add Status"
2. Create a status named "In Review" with any color
3. Create another status named "Approved" with any color

Expected: You should now have at least 2 custom statuses in the list.

### Step 3: Identify Current Default

1. Look at the custom statuses list
2. Find which status has the "Default" badge with a star icon
3. Note which status is currently the default

Expected: One status should have a badge that says "Default" with a star icon. Other statuses should show "Custom" badge.

### Step 4: Set a Different Status as Default

1. Find a status that is NOT currently the default
2. Verify it has a "Set as Default" button (with star icon)
3. Click the "Set as Default" button
4. Wait for the operation to complete

Expected:

- A success toast message appears: "[Status Name] is now the default status for new tasks"
- The clicked status now shows the "Default" badge
- The previous default status now shows "Custom" badge
- The "Set as Default" button disappears from the new default status
- The "Set as Default" button appears on the previous default status

### Step 5: Verify Only One Default

1. Count how many statuses have the "Default" badge
2. Verify only ONE status is marked as default

Expected: Exactly one status should have the "Default" badge at any time.

### Step 6: Test via Edit Dialog

1. Click the edit button (pencil icon) on a non-default status
2. Verify the "Set as default status for new tasks" checkbox is present
3. Check the checkbox
4. Click "Update Status"
5. Verify the status is now marked as default in the list

Expected: The edit dialog checkbox should also work for setting default status.

### Step 7: Verify New Tasks Use Default

1. Note which status is currently the default
2. Navigate to a shot or asset in the project
3. Create a new task (don't specify a status)
4. Check what status the new task has

Expected: The new task should automatically have the default status you set.
✅ Test Complete!
If all steps passed, the default status management feature is working correctly.