172 lines
6.1 KiB
HTML
172 lines
6.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Quick Test: Set Default Status</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
max-width: 800px;
|
|
margin: 40px auto;
|
|
padding: 20px;
|
|
background: #f5f5f5;
|
|
}
|
|
.container {
|
|
background: white;
|
|
padding: 30px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
}
|
|
h1 {
|
|
color: #333;
|
|
margin-top: 0;
|
|
}
|
|
.step {
|
|
margin: 20px 0;
|
|
padding: 15px;
|
|
background: #f9f9f9;
|
|
border-left: 4px solid #4CAF50;
|
|
}
|
|
.step h3 {
|
|
margin-top: 0;
|
|
color: #4CAF50;
|
|
}
|
|
ol {
|
|
margin: 10px 0;
|
|
padding-left: 20px;
|
|
}
|
|
li {
|
|
margin: 8px 0;
|
|
}
|
|
.expected {
|
|
background: #e3f2fd;
|
|
padding: 10px;
|
|
margin: 10px 0;
|
|
border-radius: 4px;
|
|
border-left: 4px solid #2196F3;
|
|
}
|
|
.expected strong {
|
|
color: #1976D2;
|
|
}
|
|
code {
|
|
background: #f4f4f4;
|
|
padding: 2px 6px;
|
|
border-radius: 3px;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
.success {
|
|
background: #d4edda;
|
|
color: #155724;
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>🎯 Quick Test: Set Default Status</h1>
|
|
<p>Follow these steps to verify the "Set as Default" functionality works correctly.</p>
|
|
|
|
<div class="step">
|
|
<h3>Step 1: Navigate to Custom Task Status Manager</h3>
|
|
<ol>
|
|
<li>Login to the application as a coordinator or admin</li>
|
|
<li>Navigate to any project</li>
|
|
<li>Click on "Settings" in the sidebar</li>
|
|
<li>Go to the "Tasks" tab</li>
|
|
<li>Scroll to the "Custom Task Statuses" section</li>
|
|
</ol>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 2: Create Test Statuses (if needed)</h3>
|
|
<ol>
|
|
<li>If you don't have at least 2 custom statuses, click "Add Status"</li>
|
|
<li>Create a status named "In Review" with any color</li>
|
|
<li>Create another status named "Approved" with any color</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong> You should now have at least 2 custom statuses in the list.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 3: Identify Current Default</h3>
|
|
<ol>
|
|
<li>Look at the custom statuses list</li>
|
|
<li>Find which status has the "Default" badge with a star icon</li>
|
|
<li>Note which status is currently the default</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong> One status should have a badge that says "Default" with a star icon. Other statuses should show "Custom" badge.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 4: Set a Different Status as Default</h3>
|
|
<ol>
|
|
<li>Find a status that is NOT currently the default</li>
|
|
<li>Verify it has a "Set as Default" button (with star icon)</li>
|
|
<li>Click the "Set as Default" button</li>
|
|
<li>Wait for the operation to complete</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong>
|
|
<ul>
|
|
<li>A success toast message appears: "[Status Name] is now the default status for new tasks"</li>
|
|
<li>The clicked status now shows the "Default" badge</li>
|
|
<li>The previous default status now shows "Custom" badge</li>
|
|
<li>The "Set as Default" button disappears from the new default status</li>
|
|
<li>The "Set as Default" button appears on the previous default status</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 5: Verify Only One Default</h3>
|
|
<ol>
|
|
<li>Count how many statuses have the "Default" badge</li>
|
|
<li>Verify only ONE status is marked as default</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong> Exactly one status should have the "Default" badge at any time.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 6: Test via Edit Dialog</h3>
|
|
<ol>
|
|
<li>Click the edit button (pencil icon) on a non-default status</li>
|
|
<li>Verify the "Set as default status for new tasks" checkbox is present</li>
|
|
<li>Check the checkbox</li>
|
|
<li>Click "Update Status"</li>
|
|
<li>Verify the status is now marked as default in the list</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong> The edit dialog checkbox should also work for setting default status.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="step">
|
|
<h3>Step 7: Verify New Tasks Use Default</h3>
|
|
<ol>
|
|
<li>Note which status is currently the default</li>
|
|
<li>Navigate to a shot or asset in the project</li>
|
|
<li>Create a new task (don't specify a status)</li>
|
|
<li>Check what status the new task has</li>
|
|
</ol>
|
|
<div class="expected">
|
|
<strong>Expected:</strong> The new task should automatically have the default status you set.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="success">
|
|
<strong>✅ Test Complete!</strong><br>
|
|
If all steps passed, the default status management feature is working correctly.
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|