๐งช Test Cases for Unified Space & Project Management
Comprehensive test cases for verifying the implementation of the unified space and project management system. These tests cover all major functionality including space creation, member management, project features, and error handling.
Test Environment Setup
Before running tests, ensure:
- Development server is running on
http://localhost:3000
- You have at least 2 test user accounts
- Browser DevTools console is open for error monitoring
- Network tab is available for API call verification
1. Space Creation & Management
Test Case 1.1: Create a New Document Space
Core FeatureSteps:
- Click on "+" button in the sidebar
- Select "Create Space" option
- Enter space name: "Marketing Docs"
- Select space type: "Document"
- Choose icon: ๐
- Set permission: "Public"
- Click "Create"
Expected Result:
- New space appears in sidebar with ๐ icon
- Space is accessible to all workspace members
- Space shows in the outline with correct hierarchy
Test Case 1.2: Create a New Project Space
Core FeatureSteps:
- Click on "+" button in the sidebar
- Select "Create Space" option
- Enter space name: "Q1 Product Launch"
- Select space type: "Project"
- Choose icon: ๐
- Set permission: "Private"
- Click "Create"
Expected Result:
- New project space appears in sidebar with ๐ icon
- Project space includes a Kanban board view automatically
- Only space creator has access initially
2. Space Member Management
Test Case 2.1: Invite Members to Space
CollaborationSteps:
- Right-click on any space in sidebar
- Select "Manage Space"
- Click "Manage Space Members" button
- Click "Invite Members" button
- Enter email: "colleague@company.com"
- Select role: "Editor"
- Click "Send Invitation"
Expected Result:
- Invitation sent successfully message appears
- Pending invitation shows in members list
- Invited user receives invitation email
Test Case 2.2: Change Member Role
PermissionsSteps:
- Navigate to Space Members Settings
- Find existing member in the list
- Click on role dropdown (e.g., "Editor")
- Change to "Admin"
- Confirm the change
Expected Result:
- Role updates immediately
- Member gains admin permissions
- Can now manage other members
Test Case 2.3: Remove Space Member
DestructiveSteps:
- Navigate to Space Members Settings
- Find member to remove
- Click three-dot menu next to member
- Select "Remove from space"
- Confirm removal
Expected Result:
- Member removed from space
- Member loses access to space content
- Member count updates
3. Project Space Features
Test Case 3.1: Create Tasks in Project Space
Core FeatureSteps:
- Open a project space (e.g., "Q1 Product Launch")
- Click "Add Task" button
- Fill in:
- Title: "Design landing page"
- Description: "Create mockups for new product landing"
- Status: "To Do"
- Priority: "High"
- Click "Create Task"
Expected Result:
- Task appears in "To Do" column
- Task shows high priority indicator
- Task is persisted (refresh page to verify)
Test Case 3.2: Drag & Drop Tasks
Core FeatureSteps:
- Open project space with existing tasks
- Click and hold on a task in "To Do" column
- Drag task to "In Progress" column
- Release mouse button
Expected Result:
- Task moves smoothly to new column
- Status updates to "In Progress"
- Change persists after page refresh
Test Case 3.3: Edit Task Details
Task ManagementSteps:
- Click three-dot menu on any task
- Select "Edit Task"
- Update:
- Title: Add " - URGENT" to title
- Priority: Change to "High"
- Description: Add more details
- Click "Save Changes"
Expected Result:
- Task updates immediately
- Changes visible on task card
- Updates persist after refresh
Test Case 3.4: Delete Task
DestructiveSteps:
- Click three-dot menu on a task
- Select "Delete Task"
- Confirm deletion
Expected Result:
- Task removed from board
- No errors in console
- Task doesn't reappear after refresh
4. Space Permissions
Test Case 4.1: Verify Owner Permissions
SecuritySteps:
- Create a new space as Owner
- Verify you can:
- Edit space name/icon
- Manage all members
- Delete the space
- Change space permissions
Expected Result:
- All administrative actions available
- No permission errors
Test Case 4.2: Verify Editor Permissions
SecuritySteps:
- Access a space where you're an Editor
- Try to:
- โ Create/edit content
- โ View all content
- โ Manage members (should be disabled)
- โ Delete space (should be disabled)
Expected Result:
- Can edit content but not manage space
- Management options are disabled/hidden
Test Case 4.3: Verify Viewer Permissions
SecuritySteps:
- Access a space where you're a Viewer
- Try to:
- โ View all content
- โ Create/edit content
- โ Manage members
- โ Edit tasks
Expected Result:
- Read-only access
- No edit buttons visible
- Cannot drag & drop tasks
5. Migration & Integration
Test Case 5.1: Migrate Existing Pages to Spaces
MigrationSteps:
- Click on workspace settings
- Select "Migration Wizard"
- Choose migration type: "Convert pages to spaces"
- Select pages to migrate
- Map permissions for each page
- Click "Start Migration"
Expected Result:
- Progress bar shows migration status
- Selected pages converted to spaces
- Original hierarchy preserved
- Permissions applied correctly
Test Case 5.2: Use Space Templates
TemplatesSteps:
- Click "+" in sidebar
- Select "Create from Template"
- Choose "Project Template"
- Customize:
- Name: "Mobile App Development"
- Icon: ๐ฑ
- Click "Create"
Expected Result:
- Space created with predefined structure
- Includes sample tasks and categories
- Ready-to-use project board
6. Search & Analytics
Test Case 6.1: Search Within Space
SearchSteps:
- Open any space
- Use Cmd/Ctrl + K for quick search
- Type a keyword that exists in the space
- Select "Search in current space only"
Expected Result:
- Results filtered to current space
- Shows matching documents/tasks
- Quick navigation to results
Test Case 6.2: View Space Analytics
AnalyticsSteps:
- Open a project space
- Look at the stats dashboard showing:
- Total tasks
- In Progress tasks
- Completed tasks
- Team members
Expected Result:
- Real-time statistics displayed
- Numbers match actual task counts
- Updates when tasks change
7. Error Handling & Edge Cases
Test Case 7.1: Handle Network Errors
Error HandlingSteps:
- Open browser DevTools
- Go to Network tab, set to "Offline"
- Try to create a new task
- Re-enable network
Expected Result:
- User-friendly error message appears
- No app crash
- Can retry when network returns
Test Case 7.2: Concurrent Editing
CollaborationSteps:
- Open same project in two browser tabs
- Create a task in Tab 1
- Switch to Tab 2 and refresh
- Edit the same task in both tabs
Expected Result:
- Changes sync between tabs
- Last edit wins
- No data corruption
8. Performance Tests
Test Case 8.1: Large Number of Tasks
PerformanceSteps:
- Create 50+ tasks in a project
- Test:
- Page load time
- Drag & drop responsiveness
- Search performance
Expected Result:
- Page loads in < 3 seconds
- Drag & drop remains smooth
- Search returns results instantly
๐ Verification Checklist
After running all tests, verify:
- โ No console errors in browser DevTools
- โ All data persists after page refresh
- โ UI remains responsive
- โ Proper error messages for invalid actions
- โ Correct permission enforcement
- โ Smooth animations and transitions
- โ Mobile responsive design works
๐ Notes for Testers
- Test Data Setup: Create at least 3 spaces of different types with various permission levels
- Multiple Users: Test with at least 2 different user accounts to verify permissions
- Browser Testing: Test on Chrome, Firefox, and Safari
- State Persistence: Always refresh page after actions to verify persistence
- Console Monitoring: Keep browser console open to catch any errors