UI Testing Checklist - Social Posts Publishing
๐ฏ Testing Objectiveโ
Manually test the unified social post publishing workflow through the UI to identify what's working and what needs improvement.
๐งช Test Scenariosโ
1. Platform Managementโ
Test 1.1: Create Social Platformโ
- Navigate to Social Platforms
- Click "Create Platform"
- Fill in platform details:
- Name: "Test Facebook"
- Category: "social"
- Auth Type: "oauth2"
- Save platform
- Expected: Platform created successfully
- Check: Verify in database that tokens are NOT encrypted yet (plaintext)
- Check: Check server logs for encryption subscriber activity
Test 1.2: OAuth Authenticationโ
- Click "Authenticate" on platform
- Complete Facebook OAuth flow
- Expected: Redirected back with success message
- Expected: Platform shows "Connected" status
- Check: Verify tokens are encrypted in database
- Check: Check logs for
[Encryption Subscriber] โ Platform ... credentials encrypted
Test 1.3: Platform Updateโ
- Edit platform details
- Update name or description
- Save changes
- Expected: Changes saved successfully
- Check: Tokens remain encrypted after update
2. Post Creationโ
Test 2.1: Create Facebook Postโ
- Navigate to Social Posts
- Click "Create Post"
- Fill in details:
- Name: "Test Facebook Post"
- Platform: Select Facebook platform
- Caption: "Hello Facebook! #test #socialmedia"
- Media: Upload/select an image
- Metadata: Add
page_id
- Save post
- Expected: Post created with status "draft"
- Check: Verify
media_attachmentsis object format, not array - Check: Check logs for hashtag extraction
Test 2.2: Create Instagram Postโ
- Create new post
- Select Instagram platform
- Add caption with hashtags: "#instagram #test"
- Add image (required for Instagram)
- Add
ig_user_idin metadata - Save post
- Expected: Post created successfully
- Check: Validation prevents text-only posts
Test 2.3: Create FBINSTA Postโ
- Create new post
- Select FBINSTA platform
- Add caption: "Posting to both! #facebook #instagram"
- Add image
- Add both
page_idandig_user_idin metadata - Save post
- Expected: Post created successfully
Test 2.4: Create Twitter Postโ
- Create new post
- Select Twitter platform
- Add caption (max 280 chars): "Testing Twitter! #test"
- Optional: Add image (max 4)
- Save post
- Expected: Post created successfully
- Check: Character count validation
3. Post Publishingโ
Test 3.1: Publish to Facebookโ
- Open Facebook post from Test 2.1
- Click "Publish" button
- Expected: Publishing starts
- Expected: Either success or "Invalid OAuth token" error
- Check: Post status updates to "published" or "failed"
- Check:
insights.facebook_post_idpopulated (if real token) - Check: Error message is clear (if fake token)
- Check: Logs show all 11 workflow steps executing
Test 3.2: Publish to Instagramโ
- Open Instagram post from Test 2.2
- Click "Publish"
- Expected: Publishing starts
- Expected: Either success or token error
- Check:
insights.instagram_media_idpopulated (if real token) - Check: Two-step process (container creation โ publish)
Test 3.3: Publish to FBINSTAโ
- Open FBINSTA post from Test 2.3
- Click "Publish to Both Platforms"
- Expected: Publishing to both platforms
- Expected: Results for both Facebook and Instagram
- Check:
insights.publish_resultscontains both platforms - Check: Both
facebook_post_idandinstagram_media_idpopulated
Test 3.4: Publish to Twitterโ
- Open Twitter post
- Click "Publish"
- Expected: Publishing starts
- Expected: Either success or OAuth error
- Check:
insights.twitter_tweet_idpopulated (if real token)
4. Smart Retryโ
Test 4.1: FBINSTA Partial Failureโ
- Create FBINSTA post
- Publish (assume Facebook succeeds, Instagram fails)
- Expected: Post status "failed"
- Expected:
publish_resultsshows Facebook success, Instagram failure - Click "Publish" again (retry)
- Expected: Only Instagram is retried
- Expected: Facebook result preserved from first attempt
- Check: Logs show
[Smart Retry] Publishing only to Instagram
Test 4.2: Single Platform Retryโ
- Create Facebook post
- Publish (fails)
- Fix issue (e.g., add page_id)
- Publish again
- Expected: Full retry
- Check: Previous results replaced
5. Validationโ
Test 5.1: Missing page_idโ
- Create Facebook post
- Don't add
page_idin metadata - Click "Publish"
- Expected: Error "No Facebook page_id found"
- Check: Clear error message in UI
Test 5.2: Missing ig_user_idโ
- Create Instagram post
- Don't add
ig_user_id - Click "Publish"
- Expected: Error about missing ig_user_id
- Check: Validation happens before API call
Test 5.3: Instagram Text-Onlyโ
- Create Instagram post
- Add caption only, no media
- Click "Publish"
- Expected: Error "Text-only posts not supported on Instagram"
- Check: Validation in Step 8
Test 5.4: Twitter Character Limitโ
- Create Twitter post
- Add caption > 280 characters
- Click "Publish"
- Expected: Error about character limit
- Check: Validation before API call
Test 5.5: Media Attachments Formatโ
- Try to create post with array format media_attachments
- Expected: Validation error
- Expected: Error message mentions "Expected type: 'object'"
6. Post Details Viewโ
Test 6.1: View Published Postโ
- Open a published post
- Check: Status shows "published"
- Check:
posted_attimestamp displayed - Check: Platform-specific IDs shown (facebook_post_id, etc.)
- Check: Publish results displayed
- Check: Links to published posts (if available)
Test 6.2: View Failed Postโ
- Open a failed post
- Check: Status shows "failed"
- Check: Error message displayed
- Check: Retry button available
- Check: Previous results shown (if partial failure)
7. Deprecated Endpointโ
Test 7.1: Old Endpoint Warningโ
- Use old
/admin/socials/publish-bothendpoint (via API) - Expected: Works but shows deprecation warning
- Check: Response includes
_deprecationfield - Check: Headers include
Deprecation: true - Check: Server logs show deprecation warning
8. Error Handlingโ
Test 8.1: Invalid Tokenโ
- Create platform with fake token
- Create and publish post
- Expected: Clear error message about invalid token
- Expected: Post status "failed"
- Check: Error doesn't expose sensitive data
Test 8.2: Network Errorโ
- Disconnect internet
- Try to publish post
- Expected: Network error message
- Expected: Post remains in previous state
Test 8.3: Missing Platformโ
- Create post
- Delete platform
- Try to publish post
- Expected: Error "Platform not found"
๐ Test Results Templateโ
Test Session Infoโ
- Date: ___________
- Tester: ___________
- Environment: Development / Staging / Production
- Browser: ___________
Results Summaryโ
| Test ID | Test Name | Status | Notes |
|---|---|---|---|
| 1.1 | Create Platform | โ / โ | |
| 1.2 | OAuth Auth | โ / โ | |
| 1.3 | Platform Update | โ / โ | |
| 2.1 | Create FB Post | โ / โ | |
| 2.2 | Create IG Post | โ / โ | |
| 2.3 | Create FBINSTA Post | โ / โ | |
| 2.4 | Create Twitter Post | โ / โ | |
| 3.1 | Publish to FB | โ / โ | |
| 3.2 | Publish to IG | โ / โ | |
| 3.3 | Publish to FBINSTA | โ / โ | |
| 3.4 | Publish to Twitter | โ / โ | |
| 4.1 | FBINSTA Retry | โ / โ | |
| 4.2 | Single Platform Retry | โ / โ | |
| 5.1 | Missing page_id | โ / โ | |
| 5.2 | Missing ig_user_id | โ / โ | |
| 5.3 | IG Text-Only | โ / โ | |
| 5.4 | Twitter Char Limit | โ / โ | |
| 5.5 | Media Format | โ / โ | |
| 6.1 | View Published | โ / โ | |
| 6.2 | View Failed | โ / โ | |
| 7.1 | Deprecated Endpoint | โ / โ | |
| 8.1 | Invalid Token | โ / โ | |
| 8.2 | Network Error | โ / โ | |
| 8.3 | Missing Platform | โ / โ |
๐ Bugs Foundโ
Bug Templateโ
**Bug ID**: BUG-001
**Test**: Test 2.1 - Create Facebook Post
**Severity**: High / Medium / Low
**Description**: Clear description of the issue
**Steps to Reproduce**:
1. Step 1
2. Step 2
3. Step 3
**Expected**: What should happen
**Actual**: What actually happened
**Screenshots**: (if applicable)
**Logs**: Relevant log entries
**Priority**: P0 (Critical) / P1 (High) / P2 (Medium) / P3 (Low)
๐ก UI Improvements Neededโ
Improvement Templateโ
**ID**: UI-001
**Area**: Social Posts / Platforms / Publishing
**Current**: Current behavior/UI
**Proposed**: Suggested improvement
**Benefit**: Why this would help
**Priority**: High / Medium / Low
๐ฏ Success Criteriaโ
Must Work โ โ
- Platform creation and OAuth
- Token encryption (automatic via subscriber)
- Post creation for all platforms
- Publishing to single platforms (FB, IG, Twitter)
- Publishing to FBINSTA
- Smart retry logic
- Validation errors are clear
- Post status updates correctly
Should Work โ โ
- Hashtag extraction
- Mention extraction
- Error messages are user-friendly
- Logs are structured and helpful
- Deprecated endpoint shows warnings
Nice to Have โ โ
- Performance is acceptable
- UI is intuitive
- No console errors in browser
- Mobile responsive (if applicable)
๐ Notes Sectionโ
Use this space for additional observations, suggestions, or questions that arise during testing.
Testing Started: ___________
Testing Completed: ___________
Overall Status: โณ In Progress / โ
Complete / โ Blocked