WordPress-iOS
WordPress-iOS copied to clipboard
Incorrect label on button when scheduling a post with a past date
Expected behavior
If the date is scheduled in the past, the button should not be updated and continue to show "Publish" / "Publish Now" as the post will be published after tapping those buttons.
Internal discussion: p1689137177286149-slack-C0180B5PRJ4
Actual behavior
When scheduling a post in the past (which is currently possible), the button on the post is updated from "Publish" and "Publish Now" to "Schedule" and "Schedule Now". This is only happening on iOS and not on Web / Android
Steps to reproduce the behavior
- Create a post
- Go to post settings and update publish date to the past
- See that the button on post changes to
Schedule
andSchedule Now
- Publish post
- See that notice shows
Post updated
Screen recording:
https://github.com/wordpress-mobile/WordPress-iOS/assets/17252150/0972bd8e-174b-4fc3-8696-2b98abf04b43
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
iPhone 13 Pro, iOS 16.5.1, v22.7.0.1