Skip to content

Commit

Permalink
ENGCOM-2271: Fix functional test failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Oct 17, 2018
1 parent a56c6fb commit 072498e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,17 @@ public function getAnalyticsStatus()

/**
* @param string $vertical
* @return array|string
* @return $this
*/
public function setAnalyticsVertical($vertical)
{
return $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select')
->setValue($vertical);

$element = $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select');
if ($element->isVisible()) {
$element->setValue($vertical);
}

return $this;
}

/**
Expand Down

0 comments on commit 072498e

Please sign in to comment.