Switch the view with the view switcher of the control panel (.o_cp_switch_buttons): list, kanban, calendar, pivot, graph, activity.
Examples
When I switch to the list view
When we switch to the kanban view
And I switch to the "pivot" view
When I switch to the graph view
And we switch to the "calendar" view
Pattern
When(/^(I |we )*switch to the "?(list|kanban|form|calendar|pivot|graph|activity|map|gantt|cohort)"? view$/, …)
Part of @webship-js/odoo-steps (github.com/webship/odoo-steps), a step pack for Webship-js 2.0.x.