Skip to main content

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_attachments is 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_id in 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_id and ig_user_id in 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_id populated (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_id populated (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_results contains both platforms
  • Check: Both facebook_post_id and instagram_media_id populated

Test 3.4: Publish to Twitterโ€‹

  • Open Twitter post
  • Click "Publish"
  • Expected: Publishing starts
  • Expected: Either success or OAuth error
  • Check: insights.twitter_tweet_id populated (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_results shows 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_id in 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_at timestamp 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-both endpoint (via API)
  • Expected: Works but shows deprecation warning
  • Check: Response includes _deprecation field
  • 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 IDTest NameStatusNotes
1.1Create Platformโœ… / โŒ
1.2OAuth Authโœ… / โŒ
1.3Platform Updateโœ… / โŒ
2.1Create FB Postโœ… / โŒ
2.2Create IG Postโœ… / โŒ
2.3Create FBINSTA Postโœ… / โŒ
2.4Create Twitter Postโœ… / โŒ
3.1Publish to FBโœ… / โŒ
3.2Publish to IGโœ… / โŒ
3.3Publish to FBINSTAโœ… / โŒ
3.4Publish to Twitterโœ… / โŒ
4.1FBINSTA Retryโœ… / โŒ
4.2Single Platform Retryโœ… / โŒ
5.1Missing page_idโœ… / โŒ
5.2Missing ig_user_idโœ… / โŒ
5.3IG Text-Onlyโœ… / โŒ
5.4Twitter Char Limitโœ… / โŒ
5.5Media Formatโœ… / โŒ
6.1View Publishedโœ… / โŒ
6.2View Failedโœ… / โŒ
7.1Deprecated Endpointโœ… / โŒ
8.1Invalid Tokenโœ… / โŒ
8.2Network Errorโœ… / โŒ
8.3Missing 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