Skip to content
Snippets Groups Projects
Commit d33d5c0e authored by Iryna Lagno's avatar Iryna Lagno
Browse files

MAGETWO-59739: [FT] Magento\Checkout\Test\TestCase\OnePageCheckoutTest fails randomly on CI

parent de215e1c
Branches
Tags
No related merge requests found
......@@ -8,7 +8,6 @@ namespace Magento\Checkout\Test\Block\Onepage;
use Magento\Mtf\Block\Block;
use Magento\Mtf\Fixture\InjectableFixture;
use Magento\Payment\Test\Fixture\CreditCard;
/**
* Checkout payment block.
......@@ -90,7 +89,12 @@ class Payment extends Block
} catch (\Exception $exception) {
throw new \Exception('Such payment method is absent.');
}
$this->waitForElementVisible($paymentSelector);
$browser = $this->browser;
$browser->waitUntil(
function () use ($browser, $paymentSelector) {
return $browser->find($paymentSelector);
}
);
$paymentRadioButton = $this->_rootElement->find($paymentSelector);
if ($paymentRadioButton->isVisible()) {
$paymentRadioButton->click();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment