Skip to content

Commit d33d5c0

Browse files
committed
MAGETWO-59739: [FT] Magento\Checkout\Test\TestCase\OnePageCheckoutTest fails randomly on CI
1 parent de215e1 commit d33d5c0

File tree

1 file changed

+6
-2
lines changed
  • dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage

1 file changed

+6
-2
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
use Magento\Mtf\Block\Block;
1010
use Magento\Mtf\Fixture\InjectableFixture;
11-
use Magento\Payment\Test\Fixture\CreditCard;
1211

1312
/**
1413
* Checkout payment block.
@@ -90,7 +89,12 @@ public function selectPaymentMethod(array $payment, InjectableFixture $creditCar
9089
} catch (\Exception $exception) {
9190
throw new \Exception('Such payment method is absent.');
9291
}
93-
$this->waitForElementVisible($paymentSelector);
92+
$browser = $this->browser;
93+
$browser->waitUntil(
94+
function () use ($browser, $paymentSelector) {
95+
return $browser->find($paymentSelector);
96+
}
97+
);
9498
$paymentRadioButton = $this->_rootElement->find($paymentSelector);
9599
if ($paymentRadioButton->isVisible()) {
96100
$paymentRadioButton->click();

0 commit comments

Comments
 (0)