Set a preference of a section of Settings > Preferences by its label, then Save: a list's option by the label it shows, a switch "on" or "off", or a text. The preferences come back as they were when the scenario ends.
Examples
When I set the preference "Time format" to "07:30 AM" in "User Interface"
When I set the preference "Pretty dates" to "off" in "User Interface"
When we set the preference "Date format" to "24.07.2026" in "User Interface"
And I set the preference "Display next list entry after delete/move" to "off" in "User Interface"
When I set the preference "Refresh (check for new messages, etc.)" to "never" in "User Interface"
Pattern
When(/^(?:I|we) set the preference "([^"]*)" to "([^"]*)" in "([^"]*)"$/, …)
Part of @webship-js/roundcube-steps (github.com/webship/roundcube-steps), a step pack for Webship-js 2.0.x.