WordPress-iOS icon indicating copy to clipboard operation
WordPress-iOS copied to clipboard

Offline Mode: Sync Publishing

Open kean opened this issue 1 year ago • 2 comments

Part of https://github.com/wordpress-mobile/WordPress-iOS/issues/22579

To test:

[!IMPORTANT]
Make sure to enable the .offlineMode feature flag.

  • Tap "+" to create a new post
  • Add content and tap "Publish"
  • Verify that the pre-publishing sheet is shown
  • Tap "Publish"
  • Verify that that sheet is disabled and can't be dismissed during publishing
  • Verify that if request fails, a snackbar is shown (note: it should not have a "Retry" button)
  • Verify that if request succeed, the editor is dismissed

This is the only scenario that is now officially supported. We'll need more tests, including automated test in the future PRs.

Regression Notes

  1. Potential unintended areas of impact: Publishing
  2. What I did to test those areas of impact (or what existing automated tests I relied on): manual
  3. What automated tests I added (or what prevented me from doing so): n/a

PR submission checklist:

  • [ ] I have completed the Regression Notes.
  • [ ] I have considered adding unit tests for my changes.
  • [ ] I have considered adding accessibility improvements for my changes.
  • [ ] I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

Testing checklist:

  • [ ] WordPress.com sites and self-hosted Jetpack sites.
  • [ ] Portrait and landscape orientations.
  • [ ] Light and dark modes.
  • [ ] Fonts: Larger, smaller and bold text.
  • [ ] High contrast.
  • [ ] VoiceOver.
  • [ ] Languages with large words or with letters/accents not frequently used in English.
  • [ ] Right-to-left languages. (Even if translation isn’t complete, formatting should still respect the right-to-left layout)
  • [ ] iPhone and iPad.
  • [ ] Multi-tasking: Split view and Slide over. (iPad)

kean avatar Feb 23 '24 01:02 kean

Jetpack Alpha📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App NameJetpack Alpha Jetpack Alpha
ConfigurationRelease-Alpha
Build Numberpr22689-5205217
Version24.3
Bundle IDcom.jetpack.alpha
Commit5205217736e99b9c55c40e62db88497936bc3c13
App Center Buildjetpack-installable-builds #8105
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

wpmobilebot avatar Feb 23 '24 02:02 wpmobilebot

WordPress Alpha📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App NameWordPress Alpha WordPress Alpha
ConfigurationRelease-Alpha
Build Numberpr22689-5205217
Version24.3
Bundle IDorg.wordpress.alpha
Commit5205217736e99b9c55c40e62db88497936bc3c13
App Center BuildWPiOS - One-Offs #9062
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

wpmobilebot avatar Feb 23 '24 02:02 wpmobilebot

Test cases for notifications:

Success (Notice)

  • Publish a post
  • Verify that a success notice is shown with a "View" button
  • Tap "View" and verify that the success screen is shown

Success (Local Notification)

  • Tap "Publish" and quickly close the app
  • Verify that a success local notification is shown
  • Note: tapping on it just opens the post list

Failure (Notice)

  • When connection is down
  • Tap "Publish"
  • Verify that a failure notice is shown with no buttons

Failure (Local Notification)

  • When connection is down
  • Tap "Publish" and quickly close the app
  • Verify that a failure local notification is shown

kean avatar Mar 04 '24 17:03 kean