Skip to content

Commit 362bbf2

Browse files
nmalevaneceduard13
authored andcommitted
Fix functional tests.
1 parent 9529d31 commit 362bbf2

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected function addCondition($type, ElementInterface $context)
285285
$newCondition->find($this->addNew, Locator::SELECTOR_XPATH)->click();
286286

287287
try {
288-
$newCondition->find($this->typeNew, Locator::SELECTOR_XPATH, 'select')->setValue($type);
288+
$newCondition->find($this->typeNew, Locator::SELECTOR_XPATH, 'selectcondition')->setValue($type);
289289
$isSetType = true;
290290
} catch (\PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
291291
$isSetType = false;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
/**
3+
* Copyright © 2017 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
namespace Magento\Mtf\Client\Element;
10+
11+
/**
12+
* @inheritdoc
13+
*/
14+
class SelectconditionElement extends SelectElement
15+
{
16+
/**
17+
* @inheritdoc
18+
*/
19+
protected $optionByValue = './/option[normalize-space(.)=%s]';
20+
}

0 commit comments

Comments
 (0)