We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56c6fb commit 072498eCopy full SHA for 072498e
dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config/AnalyticsForm.php
@@ -95,12 +95,17 @@ public function getAnalyticsStatus()
95
96
/**
97
* @param string $vertical
98
- * @return array|string
+ * @return $this
99
*/
100
public function setAnalyticsVertical($vertical)
101
{
102
- return $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select')
103
- ->setValue($vertical);
+
+ $element = $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select');
104
+ if ($element->isVisible()) {
105
+ $element->setValue($vertical);
106
+ }
107
108
+ return $this;
109
}
110
111
0 commit comments