Skip to content

Commit 2afdc4e

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-43861' into PR
2 parents 5b68dde + c685025 commit 2afdc4e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

dev/tests/functional/tests/app/Magento/CatalogRule/Test/Constraint/AssertCatalogPriceRuleAppliedShoppingCart.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function processAssert(
5858
. "\nActual: " . $actualPrice . "\n"
5959
);
6060
}
61+
$checkoutCartPage->getTotalsBlock()->waitForShippingPriceBlock();
6162
$actualPrices['sub_total'] = $checkoutCartPage->getTotalsBlock()->getSubtotal();
6263
$actualPrices['grand_total'] = $checkoutCartPage->getTotalsBlock()->getGrandTotal();
6364
$expectedPrices['sub_total'] = $cartPrice['sub_total'];

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,4 +251,14 @@ public function waitForUpdatedTotals()
251251
sleep(1);
252252
$this->waitForElementNotVisible($this->blockWaitElement);
253253
}
254+
255+
/**
256+
* Wait for shipping block to appear
257+
*
258+
* @return bool|null
259+
*/
260+
public function waitForShippingPriceBlock()
261+
{
262+
$this->waitForElementVisible($this->shippingPriceBlockSelector, Locator::SELECTOR_CSS);
263+
}
254264
}

0 commit comments

Comments
 (0)