When I switch to the "Profile" tab

Switch to a tab (a tab, a pill, an item of a list that works as tabs) by its label: click it and wait until it is active and its panel has faded in. The shown event of a tab comes before its panel has finished fading in, so the step waits for the panel too. A tab that is a link to another page (the tabs a server renders) is followed, and the new page is waited for.

Examples

When I switch to the "Profile" tab
When I switch to the "Specifications" tab
When I switch to the "Account settings" tab
When I switch to the "Contact" tab
When we switch to the "Reviews" tab

Pattern

When(/^(?:I |we )?switch to the "([^"]*)" tab$/, …)

Part of @webship-js/bootstrap-steps (github.com/webship/bootstrap-steps), a step pack for Webship-js 2.0.x.