/**
* @When I go to the shipping step
*/
public function iGoToTheShippingStep()
{
if ($this->selectPaymentPage->isOpen()) {
$this->selectPaymentPage->changeShippingMethodByStepLabel();
return;
}
if ($this->completePage->isOpen()) {
$this->completePage->changeShippingMethod();
return;
}
throw new UnexpectedPageException('It is impossible to go to shipping step from current page.');
}