On a content form, schedule the item to be published, or unpublished, on a date at a time: the step opens "Scheduling options", fills the date and the time, and, on a moderated content type, chooses the state the scheduler moves the item to. The date is YYYY-MM-DD, the time HH:MM, in the site's time zone. Save the form afterwards. Scheduler publishes when cron runs after that moment.
Examples
When I schedule the content to be published on "2031-01-15" at "09:30"
And I schedule the content to be unpublished on "2031-02-01" at "18:00"
When we schedule the content to be published on "2030-12-24" at "08:00"
And we schedule the content to be unpublished on "2031-06-30" at "23:59"
Given I schedule the content to be published on "2032-03-01" at "00:05"
Pattern
When(/^(I |we )*schedule the content to be (published|unpublished) on "(\d{4}-\d{2}-\d{2})" at "(\d{2}:\d{2})"$/, …)
Part of @webship-js/drupal-cms-steps (github.com/webship/drupal-cms-steps), a step pack for Webship-js 2.0.x.