Skip to content

Commit 072498e

Browse files
committed
ENGCOM-2271: Fix functional test failures.
1 parent a56c6fb commit 072498e

File tree

1 file changed

+8
-3
lines changed
  • dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config

1 file changed

+8
-3
lines changed

dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config/AnalyticsForm.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,17 @@ public function getAnalyticsStatus()
9595

9696
/**
9797
* @param string $vertical
98-
* @return array|string
98+
* @return $this
9999
*/
100100
public function setAnalyticsVertical($vertical)
101101
{
102-
return $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select')
103-
->setValue($vertical);
102+
103+
$element = $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select');
104+
if ($element->isVisible()) {
105+
$element->setValue($vertical);
106+
}
107+
108+
return $this;
104109
}
105110

106111
/**

0 commit comments

Comments
 (0)