Skip to content

Commit 1ec390d

Browse files
author
Stanislav Idolov
committed
MAGETWO-60391: [FT] Magento\Checkout\Test\TestCase\UpdateShoppingCartTest fails randomly on CI
1 parent 52f0507 commit 1ec390d

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ public function editQty(array $checkoutData)
102102
public function getQty()
103103
{
104104
$rootElement = $this->_rootElement;
105+
$qtySelector = $this->qty;
105106
$this->browser->waitUntil(
106-
function () use ($rootElement) {
107-
return $rootElement->find($this->qty) ? true : null;
107+
function () use ($rootElement, $qtySelector) {
108+
return $rootElement->find($qtySelector)->isVisible() ? true : null;
108109
}
109110
);
110111
return $this->_rootElement->find($this->qty)->getValue();

0 commit comments

Comments
 (0)