Hello.
1) In backend set up "Encode Videos After Upload: yes". Cron also is enabled for email. Bit I prefer to convert video instantly.
2) Start to add new video by pressing "New Video" button (not in dashboard). You can test it in private group for example.
3) Chose "Video file" and it vill start upload automatically
4) After it finished don't press "Save" and don't press "Cancel". In this step users says that they changed they mind and don't want to add video.
5) Just close the tab in browser (or navigate to another page)
6) Check backend > videos. You can see that video become to "Pending" state.
7) wait for 15+ min (I'm not sure is it depend of cron)
8) check backend and frontend
Result: You can see that video is Published.
Updated: I tested also with uploading video to group's timeline. After uploading I don't wait video to be encoded. I refresh page (or navigate to another page) because want to stop process. But video become Pending and later Published.
Expected result: If user didn't pressed button "Save" at video form (or "Share" in dashboard), system should delete video file and video item.
Thanks.