Skip to content

Commit

Permalink
MAGETWO-58503: [Backport] - [Github] Add Configurable Product To Cart…
Browse files Browse the repository at this point in the history
… from Category Page #2574 #5850 #5882 #6572 #5558 #8470 - for 2.1
  • Loading branch information
OlgaVasyltsun committed Nov 9, 2017
1 parent 4b68785 commit e1af960
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,5 @@ public function clickAddToCart()
$this->_rootElement->hover();

parent::clickAddToCart();

$this->waitUntilAddToCartButtonEnabled();
}

/**
* Wait until Add to Cart button is enabled.
*
* @return mixed
*/
public function waitUntilAddToCartButtonEnabled()
{
return $this->browser->waitUntil(
function () {
$element = $this->_rootElement->find($this->addToCard, Locator::SELECTOR_CSS);
return !$element->isDisabled() ? true : null;
}
);

}
}

0 comments on commit e1af960

Please sign in to comment.