WordPress-iOS
WordPress-iOS copied to clipboard
Offline Mode: Sync Publishing
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
- Potential unintended areas of impact: Publishing
- What I did to test those areas of impact (or what existing automated tests I relied on): manual
- 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)
📲 You can test the changes from this Pull Request in Jetpack Alpha by scanning the QR code below to install the corresponding build.
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22689-5205217 | |
Version | 24.3 | |
Bundle ID | com.jetpack.alpha | |
Commit | 5205217736e99b9c55c40e62db88497936bc3c13 | |
App Center Build | jetpack-installable-builds #8105 |
📲 You can test the changes from this Pull Request in WordPress Alpha by scanning the QR code below to install the corresponding build.
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr22689-5205217 | |
Version | 24.3 | |
Bundle ID | org.wordpress.alpha | |
Commit | 5205217736e99b9c55c40e62db88497936bc3c13 | |
App Center Build | WPiOS - One-Offs #9062 |
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