Reduce test flakiness by having JS tests reliably fish out scheduled jobs

Previously, there was a random chance that the JobSidebar and JobItemView specs might be
dealing with an on_demand job, which they did not like