Skip to content

Commit 88ec9fb

Browse files
author
Oleksandr Manchenko
committed
MTA-1814: Analyse functional test failures - Sprint 9
1 parent 28dfa3e commit 88ec9fb

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dev/tests/functional/lib/Magento/Mtf/Client/Element/DatepickerElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DatepickerElement extends SimpleElement
1818
*
1919
* @var string
2020
*/
21-
protected $datePickerButton = './../img[contains(@class,"ui-datepicker-trigger")]';
21+
protected $datePickerButton = './../button[contains(@class,"ui-datepicker-trigger")]';
2222

2323
/**
2424
* DatePicker block.

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Product/View/CustomOptions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class CustomOptions extends Form
3737
*
3838
* @var string
3939
*/
40-
protected $title = './label/span[1]';
40+
protected $title = './/span[1]';
4141

4242
/**
4343
* Selector for required option
@@ -107,7 +107,7 @@ class CustomOptions extends Form
107107
*
108108
* @var string
109109
*/
110-
protected $optionByName = '//*[label[contains(.,"%s")]]';
110+
protected $optionByName = '//*[label[contains(.,"%s")] or legend[contains(.,"%s")]]';
111111

112112
/**
113113
* Get product options
@@ -463,7 +463,7 @@ protected function fillOptions(array $options)
463463
{
464464
foreach ($options as $option) {
465465
$optionBlock = $this->_rootElement->find(
466-
sprintf($this->optionByName, $option['title']),
466+
sprintf($this->optionByName, $option['title'], $option['title']),
467467
Locator::SELECTOR_XPATH
468468
);
469469
$type = $this->getOptionType($option['type']);

dev/tests/functional/tests/app/Magento/Sales/Test/Block/Adminhtml/Order/Create.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ public function selectShippingMethod(array $shippingMethod)
289289
*/
290290
public function selectPaymentMethod(array $paymentCode)
291291
{
292+
$this->getTemplateBlock()->waitLoader();
292293
$this->_rootElement->click();
293294
$this->getBillingMethodBlock()->selectPaymentMethod($paymentCode);
294295
$this->getTemplateBlock()->waitLoader();

0 commit comments

Comments
 (0)