Skip to content

Commit 2f86413

Browse files
committed
MAGETWO-57986: [FT] Can not get discount price in shopping cart
1 parent 0395357 commit 2f86413

File tree

1 file changed

+2
-0
lines changed
  • dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart

1 file changed

+2
-0
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Totals.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ protected function escapeCurrency($price)
205205
*/
206206
public function getDiscount()
207207
{
208+
$this->waitForElementNotVisible($this->blockWaitElement);
209+
$this->waitForElementVisible($this->discount, Locator::SELECTOR_CSS);
208210
$priceElement = $this->_rootElement->find($this->discount, Locator::SELECTOR_CSS);
209211
return $priceElement->isVisible() ? $this->escapeCurrency($priceElement->getText()) : null;
210212
}

0 commit comments

Comments
 (0)