Skip to content

Commit

Permalink
Fix functional tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Mar 15, 2019
1 parent c25656b commit 23ed015
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ protected function addCondition($type, ElementInterface $context)
$newCondition->find($this->addNew, Locator::SELECTOR_XPATH)->click();

try {
$newCondition->find($this->typeNew, Locator::SELECTOR_XPATH, 'select')->setValue($type);
$newCondition->find($this->typeNew, Locator::SELECTOR_XPATH, 'selectcondition')->setValue($type);
$isSetType = true;
} catch (\PHPUnit_Extensions_Selenium2TestCase_WebDriverException $e) {
$isSetType = false;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
/**
* Copyright © 2017 Magento. All rights reserved.
* See COPYING.txt for license details.
*/

declare(strict_types=1);

namespace Magento\Mtf\Client\Element;

/**
* @inheritdoc
*/
class SelectconditionElement extends SelectElement
{
/**
* @inheritdoc
*/
protected $optionByValue = './/option[normalize-space(.)=%s]';
}

0 comments on commit 23ed015

Please sign in to comment.